28.11.2010, 10:34
My bad i should have compiled it one sec ill fix.
pawn Код:
forward ArmourTimer();
public OnGameModeInit()
{
SetTimer("ArmourTimer", 5000, true);
return 1;
}
public ArmourTimer()
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
if(!IsPlayerConnected(playerid))continue;
new
Float:armour;
GetPlayerArmour(playerid, armour);
if(GetPlayerScore(playerid) < 1500 && armour > 25.0)//don't know how much armour you allow 1500
{
Ban(playerid);
}
}
}