Whats wrong with this /enter
#1

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.");
    }
It compiles fine with no errors but when I do /enter near a shamal nothng happens ?
Reply


Messages In This Thread
Whats wrong with this /enter - by ShawnMiller1337 - 07.03.2012, 21:38
Re: Whats wrong with this /enter - by Gerira Gaijin - 07.03.2012, 21:40
Re: Whats wrong with this /enter - by 2KY - 07.03.2012, 21:41
AW: Whats wrong with this /enter - by Drebin - 07.03.2012, 21:41
Re: AW: Whats wrong with this /enter - by 2KY - 07.03.2012, 21:43
Re: Whats wrong with this /enter - by ShawnMiller1337 - 08.03.2012, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)