19.06.2015, 20:07
pawn Код:
public OnGameModeInit()
{
SetTimer("USACHealthCheckBan", 500, true);
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 99);
return 1;
}
pawn Код:
forward USACHealthCheckBan(playerid);
public USACHealthCheckBan(playerid)
{
new Float:USACPlayerHealth;
GetPlayerHealth(playerid, USACPlayerHealth);
if(USACPlayerHealth >= 100)
{
Ban(playerid);
}
return 1;
}