[Ajuda] Adicionar /admins nгo online
#1

alguem poderia me ajudar a adicionar admins nгo online em meu comando?

Esse й o comando.

PHP код:
    CMD:admins(playeridparams[])
    {
        foreach(
Playeri)
        {
            if(
PlayerInfo[i][pAdmin] > 0)
            {
                if(
admhide[i] == 0)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    new 
string[500];
                    if(
admtrampando[i] == 1)
                    {
                        if(
PlayerInfo[i][pAdmin] == 1337)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Master{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 3001)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Subdono{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 5000)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Fundador{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 1338)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]"sendernamePlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                        
ShowPlayerDialog(playerid500DIALOG_STYLE_LIST"Administradores Online"string"Fechar""");
                    }
                    else
                    {
                        if(
PlayerInfo[i][pAdmin] == 1337)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Master{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 3001)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Subdono{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 5000)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Fundador{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 1338)
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else
                            
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendernamePlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                        
ShowPlayerDialog(playerid500DIALOG_STYLE_LIST"Administradores Online"string"Fechar""");
                          }
                    }
                }
            }
            if(
PlayerInfo[i][pAdminTemp] > 0)
            {
                if(
admhide[i] == 0)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    new 
string[500];
                    if(
admtrampando[i] == 1)
                    {
                        
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Temporбrio{B4B5B7}]"sendername);
                        
ShowPlayerDialog(playerid500DIALOG_STYLE_LIST"Administradores Online"string"Fechar""");
                    }
                    else
                    {
                        
format(string500"{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Temporбrio{B4B5B7}] {FF0000}[Jogando]"sendername);
                        
ShowPlayerDialog(playerid500DIALOG_STYLE_LIST"Administradores Online"string"Fechar""");
                    }
                }
            }
        }
        return 
true;
    } 
Reply


Messages In This Thread
Adicionar /admins nгo online - by santans680 - 14.04.2017, 17:26
Re: Adicionar /admins nгo online - by HoodScript - 14.04.2017, 17:36
Re: Adicionar /admins nгo online - by IlanZ - 14.04.2017, 19:43
Re: Adicionar /admins nгo online - by ipsLuan - 14.04.2017, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)