Anti Health Hack doesn't work
#1

Hey guys, here is a quick script I made using someone's help from the forums, and I was wondering why is it bugged ...
Here is the code:
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponidbodypart)
{
    if(!
SpawnProtected[damagedid])
    {
        if(
Armour[damagedid] > amountArmour[damagedid] -= amount;
        else if(
Armour[damagedid])
        {
            
amount -= Armour[damagedid];
            
Armour[damagedid] = 0.0;
            if(
amount)
            {
                if(
Health[damagedid] > amountHealth[damagedid] -= amount;
                else 
Health[damagedid] = 0.0;
            }
        }
        else if(
Health[damagedid] > amountHealth[damagedid] -= amount;
        else 
Health[damagedid] = 0.0;
        new 
Float:hpFloat:ap;
        
GetPlayerHealth(damagedidhp);
        
GetPlayerArmour(damagedidap);
        if(
Health[damagedid] != hp || Armour[damagedid] != ap) return AddBan(damagedidRPN(damagedid), "Anti Cheat""Health Hacking"RPIP(damagedid));
    }
    return 
1;

When you get hit, your HP&AP lost is reduced from your HP & AP server sided array, if it's different = get banned.
The bug is: Even if I am not using any hacks, I am getting banned, anyone ?
Reply


Messages In This Thread
Anti Health Hack doesn't work - by NeXoR - 30.10.2016, 12:42
Re: Anti Health Hack doesn't work - by GoldenLion - 30.10.2016, 12:48
Re: Anti Health Hack doesn't work - by NeXoR - 30.10.2016, 13:04
Re: Anti Health Hack doesn't work - by GoldenLion - 30.10.2016, 13:09
Re: Anti Health Hack doesn't work - by iLearner - 30.10.2016, 13:19
Re: Anti Health Hack doesn't work - by NeXoR - 30.10.2016, 14:34
Re: Anti Health Hack doesn't work - by iLearner - 30.10.2016, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)