SA-MP Forums Archive
Help with teleporting - 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: Help with teleporting (/showthread.php?tid=126284)



Help with teleporting - yoan103 - 07.02.2010

Hi guys i know how to make the teleport command and all of it's stuff but i want to ask you because i don't know this - Well... my question is how can i make the teleport command so it can teleport with the vehicle (the guy who is still in the vehicle and types maybe /parklot he teleports still on the seat of his vehicle)?


Re: Help with teleporting - yoan103 - 07.02.2010

please help me


Re: Help with teleporting - mansonh - 07.02.2010

b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.

http://forum.sa-mp.com/index.php?topic=2750.0
https://sampwiki.blast.hk/wiki/SetVehiclePos


Re: Help with teleporting - yoan103 - 07.02.2010

i guess you didn't read my question very carefully
When a player is driving and types a command he teleports with his car(but i want him to be still behind the wheel)


Re: Help with teleporting - mansonh - 07.02.2010

No I read your question, you must be stating it wrong.

If you use setvehiclepos he will still be behind the wheel.

-edit
And just because you didn't get an answer withing 5 seconds doesn't mean you can pm me.
DO NOT PM because you don't get an answer right away, its worse than bumping.


Re: Help with teleporting - yoan103 - 07.02.2010

Yes, but with the set vehicle pos it only teleports the car id i have chosen. For example i have two nrg's an admin spawns a car(id 3) and when he teleports it teleports him only the nrg(id 1) car. Am i right?


Re: Help with teleporting - mansonh - 07.02.2010

NO.
if a player is in a vehicle.
And you say setvehiclepos....
It will teleport him inside of the vehicle too.

make sure your using the right vehicle id.
GetPlayerVehicleID


Re: Help with teleporting - yoan103 - 07.02.2010

Thanks for the info very much i really appreciate it because i am making a game mode. Thanks for your help