Health Hack check not working
#1

Expectation: Player gets banned if their actual health is more than their stored health.

Reality: Player gets banned for taking fall damage.

pawn Код:
new Float:health;
        GetPlayerHealth(i, health);
        if(SpectatingPlayer[i] != -2)
        {
            if(health > OldHealth[i])
            {
                SpectatingPlayer[i] = -2;
                new hour, minute, second, bstring[256], gstring[128];
                TIMER_BAN[i] = SetTimerEx("BanTimer", 1000, false, "i", i);
                gettime(hour, minute, second);
                format(bstring,sizeof(bstring), "Banned Details\nBanned by: [HG AntiCheat]\nCurrent Time: %d:%d:%d\nBan Reason: Health Hacking\nTake a SS with F8\nAnd post on our forums at\nhttp://hungergames2015.enjin.com", hour, minute, second);
                ShowPlayerDialog(i, BAN_DIALOG, DIALOG_STYLE_MSGBOX, "You've been banned.", bstring, "OK", "");
                format(gstring,sizeof(gstring), "AdmCmd: {FFFFFF}[HG AntiCheat] has banned player %s for Health Hacking.", GetName(i));
                SCMA(COLOR_ORANGE, gstring);
            }
            else if(health <= OldHealth[i])
            {
                OldHealth[i] = health;
            }
        }
Reply


Messages In This Thread
Health Hack check not working - by Aerotactics - 23.10.2015, 23:00
Re: Health Hack check not working - by PrO.GameR - 23.10.2015, 23:27
Re: Health Hack check not working - by Aerotactics - 23.10.2015, 23:37
Re: Health Hack check not working - by Pottus - 23.10.2015, 23:54

Forum Jump:


Users browsing this thread: 2 Guest(s)