[FilterScript] The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker]
#12

Quote:
Originally Posted by Dragony92
View Post
I made this in a hurry... Should be useful....
http://pastebin.com/PNYK4JL8
pawn Code:
#include <YSI\y_timers>
#include <foreach>

new PlayerHealth[MAX_PLAYERS];
new Spawned[MAX_PLAYERS] = 1;

public OnPlayerConnect(playerid)
{
    Spawned[playerid] = 0;
    PlayerHealth[playerid] = 0;
    return 1;
}


public OnPlayerSpawn(playerid)
{
    new Float:Health;
    GetPlayerHealth(playerid, Health);
    PlayerHealth[playerid] = Health;
    Spawned[playerid] = 1;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    Spawned[playerid] = 0;
    return 1;
}

Timer:CheckHP[5000]()
{
    foreach(Player, i)
    {
        if(Spawned[i] == 1)
        {
            new Float:Health, string[58 + MAX_PLAYER_NAME];
            GetPlayerHealth(i, Health);
            if(Health > PlayerHealth[i])
            {
                Kick(i);
                format(string, sizeof(string),"Player %d has been kicked by AntiCheat. Reason: HealthHack");
                SendClientMessage(playerid, -1, string);
            }
            else
            {
                PlayerHealth[i] = Health;
            }
        }
    }
    return 1;
}

forward ACSetPlayerHealth(playerid, Float:health)
public ACSetPlayerHealth(playerid, Float:health) //Use this to SetPlayerHealth
{
    PlayerHealth[playerid] = health;
    SetPlayerHealth(playerid, health);
    return 1;
}
DraGoN's AntiCheat http://www.youtube.com/watch?v=PxDfGKDFtcg
Hey man this is good (didnt test it just read the code) but if a person tries to make it as a filterscript it has a BIG bug you didnt do #include <a_samp>
Reply


Messages In This Thread
The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by fiki574 - 14.12.2011, 21:47
Respuesta: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by [Nikk] - 14.12.2011, 21:49
Re: Respuesta: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Emmet_ - 15.12.2011, 00:32
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by cessil - 15.12.2011, 00:54
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Dragony92 - 15.12.2011, 03:58
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Astralis - 15.12.2011, 04:33
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by fiki574 - 15.12.2011, 06:45
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by cessil - 15.12.2011, 07:31
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Dragony92 - 15.12.2011, 07:45
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by fiki574 - 15.12.2011, 07:53
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by xinix000 - 15.12.2011, 08:10
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by §с†¶e®РµРe - 15.12.2011, 11:26
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by shitbird - 15.12.2011, 11:29
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by GamingTurf - 15.12.2011, 11:48
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by fiki574 - 15.12.2011, 18:13
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Dragony92 - 15.12.2011, 20:18
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by WarToFar - 26.12.2011, 13:39
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Fairy - 27.12.2011, 13:55
Re: Respuesta: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Notis123 - 28.12.2011, 09:30
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Jeffry - 15.02.2012, 18:06
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by fiki574 - 15.02.2012, 18:34
Re: The Best Anti Health-Hack [Works 100%][Bans every single HealthHacker] - by Da' J' - 16.02.2012, 08:00

Forum Jump:


Users browsing this thread: 1 Guest(s)