[Ajuda] /admins em dialog.
#8

Mesma coisa...
Continua sу aparecendo 1 admin. Quero que pegue todos os admins online.
Print:


Code atual:
PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
      new 
NickName[128];
      new 
temadm;
    for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerConnected(i))
    {
    if(
DOF2_GetInt(f(i), "AdminL") == 1)
    {
    if(
aInfo[i][Oculto] == false)
    {
    
GetPlayerName(iNickName128);
    
temadm ++;
    
format(stringsizeof(string), "~ %s [ID:%d] {1E90FF}Dono"NickNamei);
    }
    }
    if(
aInfo[i][Admin] == && DOF2_GetInt(f(i), "AdminL") == 0)
    {
    if(
aInfo[i][Oculto] == false)
    {
     
GetPlayerName(iNickName128);
    
temadm ++;
    
format(stringsizeof(string), "~ %s [ID:%d] {1E90FF}Administrador"NickNamei);
    }
    }
    if(
aInfo[i][Moderador] == && DOF2_GetInt(f(i), "AdminL") == 0)
    {
    if(
aInfo[i][Oculto] == false)
    {
    
GetPlayerName(iNickName128);
    
temadm ++;
    
format(stringsizeof(string), "~ %s [ID:%d] {00FF7F}Moderador"NickNamei);
    }
    }
    if(
aInfo[i][Ajudante] == && DOF2_GetInt(f(i), "AdminL") == 0)
    {
    if(
aInfo[i][Oculto] == false)
    {
    
GetPlayerName(iNickName128);
    
temadm ++;
    
format(stringsizeof(string), "~ %s [ID:%d] {FFA500}Ajudante"NickNamei);
    }
    }
      }
    if(
temadm == 1){
    
ShowPlayerDialog(playeridADMINSDDIALOG_STYLE_MSGBOX"{FFFFFF}Administradores online:"string"Fechar""");
    return 
1;
    }
    if(
temadm == 1) return ShowPlayerDialog(playeridADMINSDDIALOG_STYLE_MSGBOX"{FFFFFF}Administradores online:""{FF0000}Nгo hб membros da Administraзгo online no momento'""Fechar""");
    return 
1;
    }
    } 
Reply


Messages In This Thread
/admins em dialog. - by Luiiiz - 03.12.2016, 22:16
Re: /admins em dialog. - by best95 - 03.12.2016, 22:39
Re: /admins em dialog. - by Luiiiz - 03.12.2016, 22:58
Re: /admins em dialog. - by best95 - 03.12.2016, 23:19
Re: /admins em dialog. - by Luiiiz - 03.12.2016, 23:28
Re: /admins em dialog. - by Luiiiz - 03.12.2016, 23:31
Respuesta: /admins em dialog. - by Lucas_Rocha - 04.12.2016, 02:47
Re: /admins em dialog. - by Luiiiz - 04.12.2016, 11:55
Re: Respuesta: /admins em dialog. - by ipsLuan - 04.12.2016, 11:58
Re: /admins em dialog. - by Luiiiz - 04.12.2016, 12:00

Forum Jump:


Users browsing this thread: 2 Guest(s)