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



Teleport - yoan103 - 07.07.2010

Hi guys, i want to make a teleport command, with these random coordinates
4267.14125 6262.1246 2146.5278

and to teleport with the vehicle
"For example i am in a vehicle, driving it, and i make the command, for example "/test" and after i type it and press enter, i want it to teleport me, but i must still drive the vehicle, YES IT'S POSSIBLE, I HAD AN OLD "great" MOD THAT GOT DELETED, so i am asking you for the command "


Re: Teleport - Hiddos - 07.07.2010

Use SetVehiclePos instead of SetPlayerPos in that case.


Re: Teleport - yoan103 - 07.07.2010

Can you give me the code, i am a bad scripter


Re: Teleport - Jack_Richards - 07.07.2010

Код:
SetPlayerVirtualWorld( playerid, 0 );
SetPlayerInterior( playerid, InteriorID);
SetPlayerPos( playerid, 4267.14125, 6262.1246, 6262.1246 2146.5278 );



Re: Teleport - yoan103 - 07.07.2010

and also, I WANT TO BE STILL DRIVING THE VEHICLE WHEN I TELEPORT


Re: Teleport - Jack_Richards - 07.07.2010

The code i sent is what i use in my server and it works fine, with cars or without.


Re: Teleport - Hiddos - 07.07.2010

@Jack: That's not a native sa-mp function.


Re: Teleport - yoan103 - 07.07.2010

Well it doesn't work for me..., SetPlayerPositionEx, undefinded symbol


Re: Teleport - Jack_Richards - 07.07.2010

SetPlayerPos* My Mistake.


Re: Teleport - Lorenc_ - 08.07.2010

Quote:
Originally Posted by Jack_Richards
Посмотреть сообщение
Код:
SetPlayerVirtualWorld( playerid, 0 );
SetPlayerInterior( playerid, InteriorID);
SetPlayerPos( playerid, 4267.14125, 6262.1246, 6262.1246 2146.5278 ); // Last line mate.
Offtopic: That would not work because you have 2 cords next to each without a comma.