[Ajuda]Cofre Armas
#1

Pessoal to fazendo um sistema de depositar armas no cofre da hq das orgs entгo to com um problema se eu continuar depositando a Eagle que seria a arma mesmo nгo tendo ela vai depositando balas igual presiso de ajuda :S.

pawn Код:
if(dialogid == 6968)
    {
        if(response >= 1)
        {
            new org = GetPlayerOrg(playerid);
            new depEagle = strval(inputtext);
            new pEagle = PlayerInfo[playerid][pGun2] = 24;
            if(pEagle < depEagle)
            {
                SendClientMessage(playerid,COLOR_GRAD1,"Vocк nгo tem uma eagle ou a quantia de balas!");
                return 1;
            }
            if(depEagle > 0)
            {
                if(pEagle >= depEagle)
                {
                    GivePlayerWeapon(playerid, 24, -depEagle);
                    DepositarEagle(org,depEagle);
                    format(string,sizeof(string),"Vocк Depositou %d balas de eagle,Nova quantia de balas no cofre й %d",depEagle,BancoDasOrgs[org][Eagle]);
                    SendClientMessage(playerid,COLOR_GRAD1,string);
                    return 1;
                }
            }
            return 1;
        }
        return 1;
    }
Reply


Messages In This Thread
[Ajuda]Cofre Armas - by jonas_gabriel - 01.01.2011, 00:38
Re: [Ajuda]Cofre Armas - by vinewood - 01.01.2011, 01:23
Re: [Ajuda]Cofre Armas - by jonas_gabriel - 01.01.2011, 01:48
AW: [Ajuda]Cofre Armas - by [Banido]HigorOliver - 01.01.2011, 01:58
Re: AW: [Ajuda]Cofre Armas - by jonas_gabriel - 01.01.2011, 02:11
Re: [Ajuda]Cofre Armas - by bugvip - 01.01.2011, 02:21

Forum Jump:


Users browsing this thread: 1 Guest(s)