Help with armory
#1

I recently made a dialog with armory for the police in my RP server, Now i am wondering how i could make this so you need to refill the armory?
Here is the command, please show me where and what to put in it in order to make it "not infinite" example truckers can deliver weapons and armour and medics can deliver medical kit.
pawn Код:
if(strcmp(cmd, "/armory", true) == 0)// By Tyler Acres
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 6, 233.5504,124.9487,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6,1456.9180,-1761.4631,3285.2859))
            {
                if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid,COLOR_GREY,"** You are not in SAPD!");
                else if (PlayerInfo[playerid][pDuty] == 0) return SendClientMessage(playerid,COLOR_GREY,"** You are NOT on duty!");
               
                new pdarmory[] = "1\tArmour\n2\tMedical Kit\n3\tMP5\n4\tShot Gun\n5\tRiot Shield";
                ShowPlayerDialog(playerid,501,DIALOG_STYLE_LIST,"SAPD Armory",pdarmory,"Select","Cancel");
                SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Help with armory - by Don_Cage - 10.03.2013, 22:06
Respuesta: Help with armory - by California_ - 10.03.2013, 22:29
Re: Respuesta: Help with armory - by MP2 - 10.03.2013, 22:32
Re: Respuesta: Help with armory - by Don_Cage - 10.03.2013, 23:09
Re: Help with armory - by Don_Cage - 11.03.2013, 11:13
Re: Help with armory - by Squirrel - 11.03.2013, 11:35
Re: Help with armory - by Don_Cage - 11.03.2013, 12:29
Re: Help with armory - by LetsOWN[PL] - 11.03.2013, 12:34
Re: Help with armory - by Don_Cage - 11.03.2013, 12:46
Re: Help with armory - by LetsOWN[PL] - 11.03.2013, 13:16

Forum Jump:


Users browsing this thread: 2 Guest(s)