SA-MP Forums Archive
Player and vehicle speed - 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: Player and vehicle speed (/showthread.php?tid=633548)



Player and vehicle speed - Bussyman - 03.05.2017

Hi,

I want to check if player or vehicle reach some speed, i will kick or ban him, for using hacks what speed i can tract as hack?


Re: Player and vehicle speed - Toroi - 03.05.2017

On Foot:
https://sampwiki.blast.hk/wiki/GetPlayerVelocity

In vehicle
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID
https://sampwiki.blast.hk/wiki/GetVehicleVelocity

Although I can't tell you for sure what speeds are high speeds, you'll have to test them out. Keep in mind speeds when falling when on foot may be faster than sprinting so you'll have to test a lot of scenarios to make it work well and avoid as many false-positives as possible.