Teleport vehicle to interior ? - 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 vehicle to interior ? (
/showthread.php?tid=182341)
Teleport vehicle to interior ? -
Myk3l - 10.10.2010
Hello !
Hello !
I want teleport a vehicle to hospital garage (interior) but my command can't move the vehicle :S
Why ? Have you got an example ?
Re: Teleport vehicle to interior ? -
Ash. - 10.10.2010
SetVehiclePos
-and-
LinkVehicleToInterior
pawn Код:
dcmd_hospital(playerid, params[])
{
#pragma unused params
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), HOSPITAL_ID);
SetPlayerPos(playerid, X, Y, Z); // Not sure if you need this, as if you move the vehicle, you should move the player
}