SetPlayerResource(PLAYER_1, GOLD,10000);
And so on. By the way, the answer to this question was already in this thread ;).
P.S.: Regarding the first one - I saw something similar in the map "Tactical Arena". Try searching there.
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"