Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Ajuda] /Admins em Dialog

$
0
0
Bem galera,queria pedir a ajuda de vcs para passar esse comando /admins sendclientemessage para dialog
GM Base BPF

Code:
PHP Code:

CMD:admins(playeridparams[])
    {
        
SendClientMessage(playeridCOLOR_RED"Administradores Online ");
        foreach(
Playeri)
        {
            if(
PlayerInfo[i][pAdmin] > 0)
            {
                if(
admhide[i] == 0)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    new 
string[200];
                    if(
admtrampando[i] == 1)
                    {
                        if(
PlayerInfo[i][pAdmin] == 1337)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Master{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 3001)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Subdono{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 5000)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Staff{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                            else if(
PlayerInfo[i][pAdmin] == 5001)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Stafff Master{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 1338)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Gerente{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendername,PlayerInfo[i][pFuncao]);
                        else
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}%d{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}]"sendernamePlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                        
SendClientMessage(playerid,COLOR_RED,string);
                    }
                    else
                    {
                        if(
PlayerInfo[i][pAdmin] == 1337)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Master{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 3001)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Subdono{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 5000)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Fundador{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else if(
PlayerInfo[i][pAdmin] == 1338)
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Gerente{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendername,PlayerInfo[i][pFuncao]);
                        else
                            
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}%d{B4B5B7}] Função:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]"sendernamePlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                        
SendClientMessage(playerid,COLOR_RED,string);
                    }
                }
            }
            if(
PlayerInfo[i][pAdminTemp] > 0)
            {
                if(
admhide[i] == 0)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    new 
string[128];
                    if(
admtrampando[i] == 1)
                    {
                        
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Temporário{B4B5B7}]"sendername);
                        
SendClientMessage(playerid,COLOR_GRAD1,string);
                    }
                    else
                    {
                        
format(string128"Admin: {FFFFFF}%s {B4B5B7}Nível:[{FFFFFF}Temporário{B4B5B7}] {FFFFFF}[Jogando]"sendername);
                        
SendClientMessage(playerid,COLOR_GRAD1,string);
                    }
                }
            }
        }
        return 
true;
    } 


Tentei adaptar mas ajudem :D

Viewing all articles
Browse latest Browse all 18226

Trending Articles