[pedido]codigo para zcmd
#2

Tenta assim, nгo garanto pq nunca usei ZCMD sem sscanf ;/

PHP код:
    CMD:duelo(playeridparams[])
    {
        new 
cmd[128];
        new 
idx;
        new 
id;
        
cmd otherplayerids(paramsidx);
            new 
tmp[128];
            new 
string[128];
            
tmp otherplayerids(paramsidx);
            
id strval(tmp);
            if(
InvitedDuel[playerid] == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Vocк Jб Convidou alguйm,Aguarde Expirar o Convite");
            if(
ArenaUsada == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : No momento a Arena estб Sendo Usada");
            if(!
strlen(tmp)) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Vocк deve digitar os ID do Player seguindo a Maneira (/duelo-run [playerid])");
            if(
id == playerid) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Vocк nгo pode convidar a Si-Mesmo");
            if(
InvitedDuel[id] == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : No Momento o Player estб em um Duelo, Aguarde..");
            new 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "»»[DUELO]«« : %s esta lhe convidando  para um \n Duelo Leve (Clique Aceitar para Aceitar)",name);
            
ShowPlayerDialog(id,DIALOG_DUELO,DIALOG_STYLE_MSGBOX,"»»[DUELO]«« :",string,"Aceitar""Recusar");
            
GameTextForPlayer(id,"~r~DUE~w~LO !"25003);
            
InvitedDuel[id] = true;
            
IdDuel[id] = playerid;
            
SetTimerEx("LimparDuelo",15000,false,"ii",id,playerid);
            return 
1;
        } 
Coloca ele fora da public OnPlayerCommandText e de qualquer outra public.
Reply


Messages In This Thread
[pedido]codigo para zcmd - by goku114 - 13.06.2012, 04:07
Re: [pedido]codigo para zcmd - by Bruno Pereira - 13.06.2012, 04:12
Re: [pedido]codigo para zcmd - by goku114 - 13.06.2012, 04:16
Re: [pedido]codigo para zcmd - by rjjj - 13.06.2012, 04:22
Re: [pedido]codigo para zcmd - by goku114 - 13.06.2012, 04:28

Forum Jump:


Users browsing this thread: 1 Guest(s)