Weapon check code :s [Fixed]
#4

Quote:
Originally Posted by M4DKiLLA
Edit: Fixed
sorry for adding this after you already fixed it, but I started awhile ago so I will post anyway.

pawn Код:
else if (strcmp(text,"7",true) == 0)
    {
        new playerWeapons = GetPlayerWeapon(playerid);
               
        if(playerWeapons == 23)
        {
            new Playermoney = GetPlayerMoney(playerid);

            if (Playermoney < 100)
            {
                SendClientMessage(playerid,red,"You Do not have enough Cash");
                return 1;
            }
       
            GivePlayerMoney(playerid, -100);
            GivePlayerWeapon(playerid,23,300);
            buyammu1[playerid] = 1;
        }
        else
        {
            SendClientMessage(playerid,red,"You Need to buy a Silencer to buy this ammo");
        }
        return 0;
    }
Reply


Messages In This Thread
Weapon check code :s [Fixed] - by 6tynine - 07.07.2009, 12:24
Re: Weapon check code :s - by woot - 07.07.2009, 12:29
Re: Weapon check code :s - by 6tynine - 07.07.2009, 12:43
Re: Weapon check code :s - by happyface - 07.07.2009, 13:11

Forum Jump:


Users browsing this thread: 2 Guest(s)