07.03.2012, 21:38
pawn Код:
else if(IsPlayerInRangeOfVehicle(playerid, closestcar, 5.0) && GetVehicleModel(GetPlayerVehicleID(playerid) == 519))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(VehicleStatus{vehicleid} == 1) return SendClientMessageEx(playerid, COLOR_WHITE, "You are not allowed to enter this Shamal as it's been damaged!");
new string[47 + MAX_PLAYER_NAME];
format(string, sizeof(string), "* %s enters the Shamal airplane as a passenger.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerPos(playerid, 2.509036, 23.118730, 1199.593750);
SetPlayerFacingAngle(playerid, 82.14);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVW] = vehicleid;
SetPlayerVirtualWorld(playerid, vehicleid);
PlayerInfo[playerid][pInt] = 1;
SetPlayerInterior(playerid, 1);
InsideShamal[playerid] = vehicleid;
SendClientMessageEx(playerid, COLOR_WHITE, "Type /exit near the door to exit the vehicle, or /window to look outside.");
}