FlyHack - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FlyHack (
/showthread.php?tid=412859)
FlyHack -
Essle - 03.02.2013
How to make anticheat flyhack on in car?
Re: FlyHack -
doreto - 03.02.2013
- Check vehicle Z (hight)
- Check vehicle speed
- Check last x y z from vehicle and compare them wich your 1 second saved x y z (if you have global or any other main runing timer) and calculate difference between new x y z and old
Re: FlyHack -
Essle - 03.02.2013
Can example?
Re: FlyHack -
Jstylezzz - 03.02.2013
I thought of the Z height too, but what if someone drives up on a high mountain, he gets kicked/banned wrongly.
Also, make sure you add planes and heli's as an exception, or else people won't be able to fly with those without getting kicked/banned.
Re: FlyHack -
Vince - 03.02.2013
Take a look at GetVehicleRotationQuat. If someone airbreaks with a vehicle it will usually stay perfectly level, whereas if they're driving up or down a mountain there will be variations in rotation.