Detecting airbreak? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detecting airbreak? (
/showthread.php?tid=189349)
Detecting airbreak? -
Face9000 - 11.11.2010
Is there any way to auto detect if someone use airbreak and auto ban him?
Re: Detecting airbreak? -
TheXIII - 11.11.2010
I guess you could detect the change in vehicle velocity... But.. that would also ban everyone driving into wall.
I suppose you could do that in pre-set positions, still.
Re: Detecting airbreak? -
The_Moddler - 11.11.2010
I made an anti-airbreak, just get the max Z that a player can go, if he's Z is greater than the max Z, send to admins a warning of a possible cheater.
Re: Detecting airbreak? -
rs.pect - 11.11.2010
It is possible to simply detect Air Brake in vehicle, just check whether distance between player's old position and new is big and whether GetPlayerSpeed custom function (find it in Useful Function topic) returns very little values (lower than 5).
Re: Detecting airbreak? -
Hiddos - 11.11.2010
You could also try using
this underrated plugin. It would let you detect the ground level as well so you could tell the difference between a player being in mid-air or on the ground easily. Just watch out for people using parachutes or planes.