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



vehicle position - Snowman12 - 07.06.2011

He in a teleport im chcking if player is in a vehcile and i know how to set player postion but i want to know how to do it when the players in a car so he can take the car with him


Re: vehicle position - DRIFT_HUNTER - 07.06.2011

you get player vehicle id,set player vehicle pos to teleport coordinates and put player in vehicle...simple as that xD


Re: vehicle position - Snowman12 - 07.06.2011

ye i posted it then i did it xD i should think before positing


Re: vehicle position - Mike Garber - 07.06.2011

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
you get player vehicle id,set player vehicle pos to teleport coordinates and put player in vehicle...simple as that xD
If the player is in the vehicle, SetVehiclePos is enough, you don't have to SetPlayerPos or PutPlayerInVehicle.


Re: vehicle position - Backwardsman97 - 07.06.2011

You actually don't have to put the player in it if he's already in it. Just change the position.

Edit: Too slow.