Does anyone know how to write scripting command that would add resouces to particular player only in case if that player is AI? Any help appreciated...

Code: Select all
function GiveAIResources()
if IsAIPlayer(1) then
SetPlayerResource(1, 0, GetPlayerResource(1, 0) + 10)
end
end
Users browsing this forum: No registered users and 0 guests