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



OnPlayerEnterVehicle bug - andrejc999 - 27.05.2016

So guys as you may know there is a bug with entering vehicles with G (as a passanger)...
The bug is : if you are behind a fence and the car that you are entering is on the other side you can enter that car by pressing G and waiting for a bit (you just get teleported after a shot period of time)...

So I made a simple system to stop player from entering a vehicle after 3 seconds of trying!
BUT there is a problem... It's only if the player presses "F" and I don't know how to define key "G".

Can anyone help me?

EDIT:Nevermind I fixed it...