I cant load armory equipment
#2

You messed up a lot. Here's the working code for you.

pawn Код:
if(strcmp(cmd, "/loadarmory", true) == 0)
    {
        if(PlayerInfo[playerid][pJob] == 16)
        {
            if(PlayerInfo[playerid][pArmoryrefill] == 0)
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                if(IsPlayerInRangeOfPoint(playerid, 2,-65.3189,-1119.7914,1.0781))
                {
                    if(GetVehicleModel(tmpcar) == 456 || GetVehicleModel(tmpcar) == 440 || GetVehicleModel(tmpcar) == 514 || GetVehicleModel(tmpcar) == 578 || GetVehicleModel(tmpcar) == 403 || GetVehicleModel(tmpcar) == 515)
                    {
                        SendClientMessage(playerid, TEAM_GROVE_COLOR, "You have loaded your truck with armory equipment!");
                        SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "* The Government have paid the bill for loading armory equipment.");
                        PlayerInfo[playerid][pArmoryrefill] = 1;
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You can't load with this vehicle!");
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "You are NOT at the Armory loading place!");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "You are already loaded.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not a Trucker!");
        }
        return 1;
    }
Reply


Messages In This Thread
I cant load armory equipment - by Don_Cage - 12.03.2013, 18:30
Re: I cant load armory equipment - by Ballu Miaa - 12.03.2013, 18:42
Re: I cant load armory equipment - by Don_Cage - 12.03.2013, 18:51
Re: I cant load armory equipment - by Don_Cage - 12.03.2013, 19:37
Re: I cant load armory equipment - by SchurmanCQC - 12.03.2013, 19:40

Forum Jump:


Users browsing this thread: 1 Guest(s)