small help please
#2

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;
}
Reply


Messages In This Thread
small help please - by Youice - 24.04.2012, 19:02
Re: small help please - by ViniBorn - 24.04.2012, 19:07
Re: small help please - by Pinguinn - 24.04.2012, 19:08
Re: small help please - by Youice - 24.04.2012, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)