SA-MP Forums Archive
setvehicleparamsex - 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: setvehicleparamsex (/showthread.php?tid=619990)



setvehicleparamsex - MerryDeer - 24.10.2016

Hi,

Cheats can off setvehicleparamsex, like i off engine or whatever, cheaters happy go still. How to make anti cheat?


Re: setvehicleparamsex - Kaliber - 24.10.2016

Thats not that easy...

But you can hook the function SetVehicleParamsEx and save this in a var...

Then you check in OnPlayerStateChange..if the Player can enter it..even the vehicle is closed..then you can RemoveItFromVehicle...and start a timer..if the player is then even in a Vehicle..use SetPlayerPos..and after that...use a timer again...then he could be afk or a cheater..so just kick him (It could also be a G-Bug)

...but actually there are anti-cheats for that (i think xD)