[Ajuda] Comando /admins
#3

Quote:
Originally Posted by humildadeforever
View Post
PHP Code:
CMD:admins(playerid)
{
    new 
count 0StrAdmins[1000], str[120];
    if(
jInfo[playerid][Logado] == false) return 1;
    for (new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
jInfo[i][Cargo] > 0)
            {
                
format(strsizeof(str), "{FFFFFF}[ %s {FFFFFF}] {FF8000}%s (%d) {FFFFFF}estб {00FF00}Online\n"LevelAdmin[jInfo[i][Cargo]], jNome(i), i);
                
strcat(StrAdminsstr);
                
count++;
            }
        }
    }
    if(
count == 0)
    {
        
format(strsizeof(str), "{FF0000}Nenhum administrador Online no momento !");
        
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"str"Fechar""");
        return 
1;
    }
    
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"StrAdmins"Fechar""");
    return 
1;

Obrigadгo, Funcionou !
Reply


Messages In This Thread
Comando /admins - by zNaKa - 04.05.2018, 19:27
Re: Comando /admins - by humildadeforever - 04.05.2018, 19:55
Re: Comando /admins - by zNaKa - 04.05.2018, 20:37

Forum Jump:


Users browsing this thread: 2 Guest(s)