Teleport
#1

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 "
Reply
#2

Use SetVehiclePos instead of SetPlayerPos in that case.
Reply
#3

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

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

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

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

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

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

SetPlayerPos* My Mistake.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)