23.12.2011, 21:24
Quote:
You didn't read the Scripting Basics and such on the wiki did you?
pawn Код:
It's untested. And I wasn't sure how you wanted to handle giving player Armour, so I went ahead and checked it before giving it. |
pawn Код:
new Float:HP, Float:Armour;
GetPlayerArmour(playerid, Armour);
GetPlayerHealth(playerid, HP);
if(HP < 10000 || Armour < 10000)
{
SetPlayerHealth(playerid, 10000);
SetPlayerArmour(playerid, 10000);
}