[Include] OnPlayerWarpToVehicle - Anti Cheat
#5

You should test the code before releasing it.
When a player tries to enter a vehicle, enter[playerid] will be set to 1. And nothing else will be detected after that.
You could use enter[playerid] = vehicleid under OnPlayerEnterVehicle and check for the vehicle in OnPlayerStateChange. Not 100% accurate, though.

Sometimes player get detected when they shouldn't. Sometimes players never get detected. If you teleport from one vehicle to another using cheats (as a driver), OnPlayerStateChange will not get called, because the state does change. You are still a driver, but in a different vehicle.
Reply


Messages In This Thread
OnPlayerWarpToVehicle - Anti Cheat - by blackeagle1122 - 01.02.2014, 09:16
Re: OnPlayerWarpToVehicle - Anti Cheat - by Sublime - 01.02.2014, 09:25
Re: OnPlayerWarpToVehicle - Anti Cheat - by blackeagle1122 - 01.02.2014, 09:36
Re: OnPlayerWarpToVehicle - Anti Cheat - by Konstantinos - 01.02.2014, 10:07
Re: OnPlayerWarpToVehicle - Anti Cheat - by im - 01.02.2014, 10:50
Re: OnPlayerWarpToVehicle - Anti Cheat - by Pottus - 01.02.2014, 11:50
Re: OnPlayerWarpToVehicle - Anti Cheat - by blackeagle1122 - 01.02.2014, 12:45
Re: OnPlayerWarpToVehicle - Anti Cheat - by blackeagle1122 - 01.02.2014, 13:56

Forum Jump:


Users browsing this thread: 2 Guest(s)