SA-MP Forums Archive
Range to enter vehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Range to enter vehicle (/showthread.php?tid=72063)



Range to enter vehicle - Shellegg - 05.04.2009

Is it possible to define a range to the player enter the vehicle?
like i want that the player can only enter in vehicle with F or ENTER if he is near the car at least 3.0

Is it possible?


Re: Range to enter vehicle - introzen - 05.04.2009

You can get the PlayerToPoint to the vehicle, and then check if he is more then 3.0 radius around it. And use:

PutPlayerInVehicle