02.03.2012, 12:36
You could set a timer on GameModeInit every 5 seconds to check armour.
pawn Код:
public OnGameModeInit()
{
SetTimer("ArmourCheck",5000,true);
return 1;
}
forward ArmourCheck(playerid);
public ArmourCheck(playerid)
{
for(new i=0; i <MAX_PLAYERS; i++) // loops through all the players
{
new Float:armour;
GetPlayerArmour(i,armour); // Gets everyone's armour
if(armour > 100) // if anyone's armour is bigger than 100, then
{
Ban(i); // It bans them
}
}
return 1;
}