03.01.2011, 19:17
Yes it's able to get out of there. Here are some codes:
Get into the interior:
- No interior,
Get into the interior:
pawn Код:
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);