[Tutorial] Make an Anti Fly Hack (Of the new cheat)
#1

Make an Anti Fly Hack (Of the new cheat)


їWhat you will learn?
In this tutorial you will learn how to make an Anti Fly Hack system for the new cheats (The one that use the parachute animation).
Tutorial:
pawn Code:
new Float:Pos_x,Float:Pos_y,Float:Pos_z; // We create the variable that will save the velocity of the player
new anim = GetPlayerAnimationIndex(playerid); // We create the variable that will save the anim that player is using
GetPlayerVelocity(playerid,Pos_x,Pos_y,Pos_z); // We get the player velocity and we set it to the variable
if(Pos_x <= -0.800000  || Pos_y <= -0.800000 || Pos_z <= -0.800000 && anim == 1008) // If  x,y,z is -0.800000 or bigger and the player is using parachute animation
{
    BanEx(playerid, "Fly Hack"); // Ban the player with reason Fly Hack
    return 1; // Return 1 :)
}
Credits:
Code: [UTL]Miller
Player velocity: Anti airbreak
If you find any bug please report it.
Cya!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)