Need Help with Anti Cheats
#9

pawn Код:
new Float:CurrentHealth[MAX_PLAYERS];

stock SetPlayerHealthEx(playerid, Float:Health)
{
     CurrentHealth[playerid] = health;
     SetPlayerHealth(playerid, Health);
}


//Timer
    new Float:health;
    GetPlayerHealth(i, health);
    if (health > CurrentHealth[playerid])
    {
        BanMessages(i, "Health Hack");
    }
This just sets the variable to the current health, if his health is higher that when you gave to him it'll give the message
Reply


Messages In This Thread
Need Help with Anti Cheats - by MBilal - 25.07.2015, 10:25
Re: Need Help with Anti Cheats - by M4D - 25.07.2015, 10:48
Re: Need Help with Anti Cheats - by MBilal - 25.07.2015, 10:52
Re: Need Help with Anti Cheats - by xVIP3Rx - 25.07.2015, 11:03
Re: Need Help with Anti Cheats - by MBilal - 25.07.2015, 11:34
Re: Need Help with Anti Cheats - by M4D - 25.07.2015, 11:48
Re: Need Help with Anti Cheats - by MBilal - 25.07.2015, 12:23
Re: Need Help with Anti Cheats - by M4D - 25.07.2015, 12:36
Re: Need Help with Anti Cheats - by xVIP3Rx - 25.07.2015, 13:31
Re: Need Help with Anti Cheats - by MBilal - 25.07.2015, 13:42

Forum Jump:


Users browsing this thread: 3 Guest(s)