[Ajuda] Comando ID +condicional
#1

Entao pessoal consegui fazer um comando de vender arma, mas sу vai atй o id do cara tipo
/venderarma iddocara nomedaarma

Como eu faзo esse nomedaarma?

pawn Код:
if (strcmp("/sellgun", cmdtext, true, 10) == 0) {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /sellgun [ID] [Nome Arma]");
        new id = strval(tmp);

        if(Nome Arma == eagle)
        {
            GivePlayerWeapon(id, 24, 80);
        }
    }
Reply


Messages In This Thread
Comando ID +condicional - by pedrotvr - 20.12.2014, 15:18
Re: Comando ID +condicional - by ipsLuan - 20.12.2014, 15:20
Re: Comando ID +condicional - by MultiKill - 20.12.2014, 15:57

Forum Jump:


Users browsing this thread: 2 Guest(s)