SA-MP Forums Archive
[Ajuda] Dъvida ZCMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Dъvida ZCMD (/showthread.php?tid=375587)



Dъvida ZCMD - Douglas_prt - 07.09.2012

Boas,

Eu gostaria de saber se й possivel haver 2 comandos que executem apenas um comando... do tipo:

/inventario e /inv = executam o mesmo comando.

Estou usando ZCMD... como ficaria?


Cumps,

Douglas


Re: Dъvida ZCMD - Dolby - 07.09.2012

pawn Код:
CMD:inv(playerid)
{
     cmd_inventario(playerid,"");
     return 1;
}



Re: Dъvida ZCMD - humildadeforever - 07.09.2012

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
pawn Код:
CMD:inv(playerid)
{
     cmd_inventario(playerid,"");
     return 1;
}
Se o inventбrio nгo utilizar parвmetros pode se criar assim:

pawn Код:
CMD:inventario(playerid)
{
       //funcoes
      return 1;
}
E no /inv usar

pawn Код:
CMD:inv(playerid)
{
    cmd_inventario(playerid);
    return 1;
}



Re: Dъvida ZCMD - Douglas_prt - 07.09.2012

This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds.

Certo, vou testar. Obrigado aos dois.