Car TP'ing - 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: Car TP'ing (
/showthread.php?tid=156517)
Car TP'ing -
samuel_hamza - 23.06.2010
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.
Re: Car TP'ing -
Anthony_Brassi - 23.06.2010
SetVehiclePos(vehicleid,X,Y,Z);
Re: Car TP'ing -
Mike Garber - 23.06.2010
https://sampwiki.blast.hk/wiki/SetVehiclePos
Re: Car TP'ing -
samuel_hamza - 23.06.2010
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
Re: Car TP'ing -
Mike Garber - 23.06.2010
the player stays inside the vehicle when It is teleported, yes.
Re: Car TP'ing -
samuel_hamza - 23.06.2010
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 ?
Re: Car TP'ing -
gtapolicemods - 23.06.2010
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);
Re: Car TP'ing -
Mike Garber - 23.06.2010
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.