Anti Armour Hack problem
#6

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
What you are doing wrong here is declaring an array for all the players inside a loop for all the players.
You don't need to use an array because as soon as you loop passes one ID the armour variable can be re-used:

pawn Код:
forward ArmourTimer();
public ArmourTimer()
{
    new Float:fPlayerArmour;
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GetPlayerArmour(i, fPlayerArmour);
            if( fPlayerArmour > 99.1 )
            {
                printf("Player:%d Armour Hack", i);
                // ban(...)
            }
        }
    }
}
Also for debugging you should print the 'fPlayerArmour' value just to see what it's doing.
If you don't want to spam the console make a quick textdraw and update it with the value using a format.
It still doesn't kick me, also doesn't show the print message in the console
Reply


Messages In This Thread
Anti Armour Hack problem - by Dripac - 20.03.2012, 09:33
Re: Anti Armour Hack problem - by Twisted_Insane - 20.03.2012, 09:40
Re: Anti Armour Hack problem - by Dripac - 20.03.2012, 09:42
Re: Anti Armour Hack problem - by Twisted_Insane - 20.03.2012, 09:43
Re: Anti Armour Hack problem - by Dripac - 20.03.2012, 09:44
Re: Anti Armour Hack problem - by Dripac - 20.03.2012, 09:54
Re: Anti Armour Hack problem - by T0pAz - 20.03.2012, 09:57
Re: Anti Armour Hack problem - by Dripac - 20.03.2012, 09:58
Re: Anti Armour Hack problem - by T0pAz - 20.03.2012, 09:59
Re: Anti Armour Hack problem - by antonio112 - 20.03.2012, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)