Anti Health Hack not working.
#2

well, i dont think this will works for players
i'm using a little Anti Hack system
pawn Код:
#include <a_samp>
#include <foreach>

new Exception_Health[MAX_PLAYERS]; //on top
//------ forward lacks
forward AntiHealthHack();
new Float:pHealth[MAX_PLAYERS];

//---ongamemodeint

SetTimer("AntiHealthHack", 1000, true);
//-------
public AntiHealthHack()
{
    foreach(Player, i)
    {
        new Float:Health;
        GetPlayerHealth(i, Health);
        if(Health != pHealth[i] && Health > 0)
        {
            if(Health > pHealth[i] && Exception_Health[i] == 0)
            {
                BanEx(i, "Health Hacker");
            }
            else if(Health > pHealth[i] && Exception_Health[i] == 1)
            {
                pHealth[i] = Health;
                Exception_Health[i] = 0;                
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Anti Health Hack not working. - by Bartels - 15.01.2014, 15:09
Re: Anti Health Hack not working. - by Raza2013 - 15.01.2014, 15:19
Re: Anti Health Hack not working. - by doreto - 15.01.2014, 17:50
Re: Anti Health Hack not working. - by Bartels - 15.01.2014, 17:59
Re: Anti Health Hack not working. - by Izaki - 31.05.2016, 02:52

Forum Jump:


Users browsing this thread: 3 Guest(s)