12.03.2016, 18:47
Код:
new Float:Armour; if(GetPlayerArmour(playerid, Armour) > 2) { SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)"); DelayedKick(playerid); }
NO Callback,used on timer 1 second!
new Float:Armour; if(GetPlayerArmour(playerid, Armour) > 2) { SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)"); DelayedKick(playerid); }
new Float:Armour;
GetPlayerArmour(playerid, Armour);
if(Armour > 2.0)
{
SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)");
DelayedKick(playerid);
}
The function itself doesn't return a specific value. The player's armour is stored in the specified variable.
pawn Код:
|