[Ajuda] adicionar comando
#10

pawn Код:
#include sscanf
Comando:
pawn Код:
if(strcmp(cmd,"/equipar",true) == 0)
    {
       new  equiparid;
       if(sscanf(cmdtext,"s[9]d",cmd,equiparid))
       {
           SendClientMessage(playerid,-1,"Digite: /equipar [1 ou 2]"); // envia a mensagem caso o player digite somente /equipar
         return 1;
       }
       if(equiparid == 1) // caso digite /equipar 1
       {
           if(PlayerToPoint(1.0, playerid, X,Y,Z))
           {
           }
       }
       else if(equiparid == 2) // caso digite /equipar 2
       {
           if(PlayerToPoint(1.0, playerid, X,Y,Z))
           {
           }
       }
       else
       {
           SendClientMessage(playerid,-1,"Vocк nгo estб no lugar de equipar");
       }
       return 1;
    }
Reply


Messages In This Thread
adicionar comando - by Comanfis157 - 17.05.2014, 16:30
Re: ADICIONAR COMANDO - by MultiKill - 17.05.2014, 17:00
Re: ADICIONAR COMANDO - by Douglas_prt - 17.05.2014, 17:06
Re: ADICIONAR COMANDO - by tonisantolia - 17.05.2014, 17:12
Re: ADICIONAR COMANDO - by Comanfis157 - 17.05.2014, 17:15
Re: ADICIONAR COMANDO - by MultiKill - 17.05.2014, 17:16
Re: ADICIONAR COMANDO - by Comanfis157 - 17.05.2014, 17:22
Re: ADICIONAR COMANDO - by MultiKill - 17.05.2014, 17:32
Re: ADICIONAR COMANDO - by Comanfis157 - 17.05.2014, 17:35
Re: ADICIONAR COMANDO - by MultiKill - 17.05.2014, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)