24.10.2016, 19:43
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)
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)