23.12.2011, 21:09
You didn't read the Scripting Basics and such on the wiki did you?
Is my guess at least :/
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;
GetPlayerHealth(playerid, HP);
if(HP < 100000) {
SetPlayerHealth(playerid, 100000);
}
GetPlayerArmour(playerid, Armour);
if(Armour < 10000) {
SetPlayerArmour(playerid, 10000);
}
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.