Checking health
#1

Hello i've been working on a anti cheat for health detection if the health does over 99 it sends a msg to admins:

pawn Код:
forward HealthTimer();
public HealthTimer()
{
    new username[MAX_PLAYER_NAME];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerHealth(playerid, 100))
            {
                new string[253], playerid;
                GetPlayerName(i,username,sizeof(username));
                format(string, sizeof(string), "(AntiCheat): %s (%d): Has been detected for health hacks", username, playerid);
                SendMessageToAdmins(red,string);
                hInfo[playerid][HealthHackWarn] += 1;
            }
        }
    }
}
But I don't know if i have written it right, could you please take a look and point out what i've done wrong and where to put stuff! thank you!
Reply


Messages In This Thread
Checking health - by LeXuZ - 07.12.2014, 18:17
Re: Checking health - by Glossy42O - 07.12.2014, 18:20
Re: Checking health - by M4D - 07.12.2014, 18:26
Re: Checking health - by LeXuZ - 07.12.2014, 18:44
Re: Checking health - by M4D - 07.12.2014, 19:01
Re: Checking health - by LeXuZ - 07.12.2014, 19:14
Re: Checking health - by Clad - 07.12.2014, 19:16
Re: Checking health - by LeXuZ - 07.12.2014, 19:19
Re: Checking health - by welderlourenco - 07.12.2014, 19:24
Re: Checking health - by M4D - 07.12.2014, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)