30.03.2016, 04:59
It's not a command... Anyway, here:
pawn Код:
stock GivePlayerArmour(playerid, Float:armour)
{
new Float:current_armour;
GetPlayerArmour(playerid, current_armour);
if((current_armour + armour) > 100.0)
{
current_armour = 100.0;
armour = 0.0;
}
SetPlayerArmour(playerid, (current_armour + armour));
return 1;
}