10.10.2010, 06:44
SetVehiclePos
-and-
LinkVehicleToInterior
-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
}