Anti Fly Hack Bug
#2

Don't ever use these kinds of stuff in OnPlayerUpdate, use a timer for that.

PHP код:
// Variables
new acT;
// OnGameModeInit
acT SetTimer("AntiFly"1500true);
// OnGameModeExit
KillTimer(acT);
// function
forward public AntiFly();
public 
AntiFly()
{
    for(new 
iGetPlayerPoolSize(); <= li++)
    {
        if(
IsPlayerConnected(i))
        {
            
//Fly Hack 
            
new Float:Pos_xFloat:Pos_yFloat:Pos_zanim GetPlayerAnimationIndex(i);
            
GetPlayerVelocity(iPos_xPos_yPos_z);
            if(
anim == 1008 && GetPlayerWeapon(i) != 46 && (Pos_x <= -0.900000  || Pos_y <= -0.900000 || Pos_z <= -0.900000))
            {
                
BanEx(i"Fly Hack"); // Ban the player with reason Fly Hack
                
return 1;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Anti Fly Hack Bug - by xxxSpeedxxx - 16.11.2016, 09:39
Re: Anti Fly Hack Bug - by Logic_ - 16.11.2016, 12:05
Re: Anti Fly Hack Bug - by xxxSpeedxxx - 16.11.2016, 18:02
Re: Anti Fly Hack Bug - by AbyssMorgan - 16.11.2016, 18:38
Re: Anti Fly Hack Bug - by xxxSpeedxxx - 03.12.2016, 16:12
Re: Anti Fly Hack Bug - by Vince - 03.12.2016, 16:20
Re: Anti Fly Hack Bug - by xxxSpeedxxx - 03.12.2016, 16:35
Re: Anti Fly Hack Bug - by Micko123 - 03.12.2016, 16:37
Re: Anti Fly Hack Bug - by xxxSpeedxxx - 03.12.2016, 16:47
Re: Anti Fly Hack Bug - by Micko123 - 03.12.2016, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)