Anti Health Hack
#14

@Kingunit, After he just join the server, I guess.
Well, you can also have some fun with enums, and do something like this:
pawn Код:
enum Blabla {
Loled
}
Trololol[MAX_PLAYERS][Blabla];

public OnPlayerConnect(playerid)
{
Trololol[playerid][Loled] = false
return 1;
}

CMD:explode(playerid, params[])
{
...
Trololol[playerid][Loled] = true;
return 1;
}
    stock CheckIsGod(PlayerId)
    {
        new Float:HP;
       GetPlayerHealth(PlayerId, HP); // Edited!
       
        if(HP == 100 && Player[playerid][Loled])
            return true;
        else if(HP < 100)
            return false;
        return false;
    }
Do not use it "OnPlayerUpdate"
Try code that i provided above.
Reply


Messages In This Thread
Anti Health Hack - by Rocketeer - 31.07.2011, 19:16
Re: Anti Health Hack - by wups - 31.07.2011, 19:17
Re: Anti Health Hack - by Kingunit - 31.07.2011, 19:18
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 19:21
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 19:37
Re: Anti Health Hack - by Kingunit - 31.07.2011, 19:40
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 19:44
Re: Anti Health Hack - by Famalamalam - 31.07.2011, 19:47
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 19:50
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 19:55
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 20:08
Re: Anti Health Hack - by Kingunit - 31.07.2011, 20:10
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 20:12
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 20:14
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 20:19
Re: Anti Health Hack - by Kingunit - 31.07.2011, 20:19
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 20:24
Re: Anti Health Hack - by Rocketeer - 31.07.2011, 20:30
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 20:36
Re: Anti Health Hack - by Kingunit - 31.07.2011, 20:49
Re: Anti Health Hack - by LetsOWN[PL] - 31.07.2011, 20:51
Re: Anti Health Hack - by Kingunit - 01.08.2011, 01:30
Re: Anti Health Hack - by Rocketeer - 01.08.2011, 02:48

Forum Jump:


Users browsing this thread: 3 Guest(s)