Would this be a accurate anti-cheat? (Basic)
#5

pawn Code:
public OnPlayerUpdate(playerid)
{
    new Float:hp;
    hp = GetPlayerHealth(playerid, hp);
    if(hp > 150 )
    {
        new string[128];
        format(string,sizeof(string), "[Urban Gaming] %s has been kicked for the following Hack. (Healh Hacks)");
        SendClientMessageToAll(COLOR_BRIGHTRED, string);
        Kick(playerid);
    }
    new Float:arm;
    arm = GetPlayerArmour(playerid, arm);
    if(arm > 150 )
    {
        new string[128];
        format(string,sizeof(string), "[Urban Gaming] %s has been kicked for the following Hack. (Armour Hacks)");
        SendClientMessageToAll(COLOR_BRIGHTRED, string);
        Kick(playerid);
    }
    return 1;
}
Replace with.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)