how to stop repeating....
#1

Ok i made a weapon machine system thats all around the city of los santos and i dont want to keep repeating codes in my script , how can i make a code with all the weapon machine restricting police officers from buying weapons .

example
pawn Код:
if(newkeys & KEY_CTRL_BACK)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            if(gTeam[playerid] != SOL || gTeam[playerid] != POLICE)
            {
                if (!IsPlayerInRangeOfPoint(playerid, 2.0, 2147.4084,-1812.3466,13.5012)) return SendClientMessage(playerid, red,"You are not close to your Team(s) Weapon Machine");
                {
                    ShowPlayerDialog(playerid, DIAWEP, DIALOG_STYLE_LIST, "Weapon Machine","Pistol $3,000\nSilenced Pistol $4,000\nDesert Eagle $6,000\nShotgun $8,000\nSawn-off Shotgun $13,000\nCombat Shotgun $16,000\nUzi Machine Gun $17,000\nMP5 $13,000\nTec-9 $18,000\nAK-47 $19,000\nM4 $20,100\nCountry Rifle $21,000\nSniper Rifle $25,000\nRocket Launcher $200,000\nArmour $9,000\nHealth $8,000\nHelmet $9,000","Select","Cancel");
                }
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)