Anti Health Hack
#6

Quote:
Originally Posted by LetsOWN[PL]
Посмотреть сообщение
@Rocketeer, I don't know, that this will works, but give it a try.
(NOTE: It's in ZCMD :P)
pawn Код:
COMMAND:explode(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) // If playerid isn't RCON admin
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "You are not {FF0000}Server Admin!");
        return 1;
    }
    new PlayerId;
    if(sscanf(params, "u", PlayerId))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Try again. Usage:{FF0000 }/explode [user id]");   
        return 1;
    }

    new Float:Pos[3];
    GetPlayerPos(PlayerId, Pos[0], Pos[1], Pos[2]);

    SendClientMessage(PlayerId, 0xFF0000FF, "Admin has {FF0000}exploded{FFFFFF} you..");

    CreateExplosion(Pos[0], Pos[1], Pos[2], 2, 10.0);
    SetTimerEx("AmICheater",50,false,"d",PlayerId);
    return 1;
}
forward AmICheater(PlayerId);
public AmICheater(PlayerId)
{
    new Float:HP;
    HP = GetPlayerHealth(PlayerId);

    if(HP == 100 && !IsPlayerAdmin(playerid)) // If player health equals 100 (even after 50 ms after bum :O). And checks if PlayerId isn't a RCON Admin :P
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "You're cheater :( See you");
        Ban(playerid);
        return 1;
    }
    return 1;
}
I don't know that this will works.. I wrote it with notepad, so..
Hope it works, it just a littile sample

Greetz,
Lets.
Yes I have also something like that. But if I drop my code here it doens't work since it's not ZCMD.
By the way, don't automatic ban the player, maybe something is going wrong and than the player is banned for nothing. Just create a message like Result: [NEGATIVE] or Result: [POSITIVE]
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: 4 Guest(s)