SA-MP Forums Archive
Teleporting player in Vehicle ? - 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: Teleporting player in Vehicle ? (/showthread.php?tid=106366)



Teleporting player in Vehicle ? - Rickyboy30 - 02.11.2009

Hey!

Im asking myself this for a week right now,
When im driving a car, and doing a TP command. how can I make it that the vehicle im in get teleported too ?

Thanks


Re: Teleporting player in Vehicle ? - Daren_Jacobson - 02.11.2009

pawn Код:
if (IsPlayerInAnyVehicle(playerid))
{
  SetVehiclePos(GetPlayerVehicleID(playerid), ..
}
else
{
  SetPlayerPos(playerid, ...
}