28.11.2010, 10:40
Quote:
Remember that some police vehicles (the swat van?) gives you armour. Maybe you have them in your script, so you would ban players for entering it.
|
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 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 427)//don't know how much armour you allow 1500
{
Ban(playerid);
}
}
}