Teleport vehicle to interior ?
#2

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


Messages In This Thread
Teleport vehicle to interior ? - by Myk3l - 10.10.2010, 06:41
Re: Teleport vehicle to interior ? - by Ash. - 10.10.2010, 06:44

Forum Jump:


Users browsing this thread: 1 Guest(s)