Car TP'ing
#1

I would like to know how to able TPing with a car you are inside it ?
I mean when somenoe is inside sultan, and did /SF, he should TP there with a car, not only in food and let car in it's place.
Reply
#2

SetVehiclePos(vehicleid,X,Y,Z);
Reply
#3

https://sampwiki.blast.hk/wiki/SetVehiclePos
Reply
#4

But he wouldn't be inside the car, when TP'ing there.
I want someone stay inside when TP'ing, not entering in car each time
Reply
#5

the player stays inside the vehicle when It is teleported, yes.
Reply
#6

Quote:
Originally Posted by mavtias
the player stays inside the vehicle when It is teleported, yes.
Oh yeah, then I won't bother even to use SetPlayerPos, right ?
Reply
#7

here is how i have it set up on my server in my script


Код:
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1585.5393,714.5226,10.5754);
Reply
#8

Quote:
Originally Posted by samuel_hamza
Quote:
Originally Posted by mavtias
the player stays inside the vehicle when It is teleported, yes.
Oh yeah, then I won't bother even to use SetPlayerPos, right ?
Yes, correct. But If they are on foot you cannot use SetVehiclePos, then you must use SetPlayerPos.
Quote:
Originally Posted by Red Hockey
here is how i have it set up on my server in my script


Код:
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1585.5393,714.5226,10.5754);
Sorry, this wont help him at all...
This will only make him unable to create his own code and forced to rely on others.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)