24.04.2012, 19:07
pawn Code:
public HealthChecker()
{
new Float:health;
for(new a, b = GetMaxPlayers(); a != b; a++)
{
if(!IsPlayerConnected(a))
continue;
if(IsPlayerAdmin(a))
{
SendClientMessage(a, COLOR_GREEN, "Health Checker::{FF0000} Im starting to check peoples health , dont worry ;)");
continue;
}
GetPlayerHealth(a, health);
if(health >= 101) // ERROR is here!
Ban(a);
}
return 1;
}