Make an Anti Fly Hack (Of the new cheat) -
MillerUTL - 13.10.2013
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!
Re: Make an Anti Fly Hack (Of the new cheat) -
Sublime - 13.10.2013
Not only the falling parachute animation is used, the swimming animation is also used. Check velocity for swimming animations, and if used above set velocity, ban.
Re: Make an Anti Fly Hack (Of the new cheat) -
xF4Life - 13.10.2013
lol?
Respuesta: Re: Make an Anti Fly Hack (Of the new cheat) -
MillerUTL - 13.10.2013
Quote:
Originally Posted by Sublime
Not only the falling parachute animation is used, the swimming animation is also used. Check velocity for swimming animations, and if used above set velocity, ban.
|
In the new cheats they use parachute animation. If you want to do an anti cheat of the old fly hack (with swimming animation) you can make the one you say or use this:
pawn Code:
new Float:animX, Float:animY, Float:animZ;
new anim = GetPlayerAnimationIndex(playerid);
GetPlayerPos(playerid, animX, animY, animZ);
if((anim >= 1538) && (anim <= 1542) && animZ > 5)
{
BanEx(playerid, "Fly hack");
return 1;
}
Thanks for your comment!
Quote:
Originally Posted by xF4Life
lol?
|
Thanks?
Re: Make an Anti Fly Hack (Of the new cheat) -
Evocator - 22.11.2013
ur the best. Working perfectly. +rep
Re: Make an Anti Fly Hack (Of the new cheat) -
newbie scripter - 22.11.2013
Is this a tutorial
?? :O
Re: Make an Anti Fly Hack (Of the new cheat) -
Lajko1 - 22.11.2013
Where to put code?
Re: Make an Anti Fly Hack (Of the new cheat) -
Uberanwar - 22.11.2013
Quote:
Originally Posted by Lajko1
Where to put code?
|
OnGameModeInIt, or I think OnPlayerConnect.
Re: Make an Anti Fly Hack (Of the new cheat) -
newbie scripter - 22.11.2013
Or on player Update
Re: Make an Anti Fly Hack (Of the new cheat) -
Pottus - 22.11.2013
I'm not sure if this line here is doing as you intended
pawn Code:
if(Pos_x <= -0.800000 || Pos_y <= -0.800000 || Pos_z <= -0.800000 && anim == 1008)
I think it should read
pawn Code:
if((Pos_x <= -0.800000 || Pos_y <= -0.800000 || Pos_z <= -0.800000) && anim == 1008)
Try running the following code on this website.
http://slice-vps.nl:7070/
pawn Code:
#include <a_samp>
main() {
new a = 1, b = 2, c = 3;
if(a == 1 || b < 3 && c == 4) print("Check 1");
if((a == 1 || b < 3) && c == 4) print("Check 2!");
return 1;
}
Output: Check 1
So basically what I'm saying is if one of these checks were true
pawn Code:
Pos_x <= -0.800000 || Pos_y <= -0.800000
The animation check doesn't mean anything.
Re: Make an Anti Fly Hack (Of the new cheat) -
Wittzi - 23.12.2013
Is this accurate?
Re: Make an Anti Fly Hack (Of the new cheat) -
Ada32 - 23.12.2013
Quote:
Originally Posted by Wittzi
Is this accurate?
|
nope
Re: Make an Anti Fly Hack (Of the new cheat) -
HydraHumza - 14.08.2016
This is pure shit. Without knowing the fact how it works u put the shit here.
Re: Make an Anti Fly Hack (Of the new cheat) -
GhostHacker - 14.08.2016
Quote:
Originally Posted by Humza
This is pure shit. Without knowing the fact how it works u put the shit here.
|
Wow great you just bumped 3 year old thread .