03.01.2011, 19:05
Whats the cmd to teleport a player and a car eg a marker to someones garage they type /enter, and they spawn in the interior?
new veh = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be in an vehicle!");
if(!IsPlayerInRangeOfPoint(playerid, 5, -2073.5991, 975.3473, 62.9219)) return SendClientMessage(playerid, 0xAFAFAFAA, "You are not in range of the entrance point!");
if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be the driver of the vehicle!");
SetVehiclePos(GetPlayerVehicleID(playerid), 1403.2014, 3.4539, 1000.9092);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.89);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), INTERIOR_ID_YOU_NEED);
PutPlayerInVehicle(playerid, veh, 0);