[Ajuda] /Admins em dialog
#2

Mano, pega esse cуdigo como base, basta adaptar ele б sua GM, EXEMPLO: Na minha mostra cargo/Funзгo, creio que a sua nгo, entгo tu sу tera que fazer leves adaptaзхes..

PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
    static 
string[3000];
     
string[0] = EOS;
    new 
bool:sucess false;
    foreach(
Playeri)
    {
        if(
PlayerInfo[i][pAdmin] > 0)
        {
             
GetPlayerName(isendernamesizeof(sendername));
            if(
admhide[i] == 0)
            {
                if(
admtrampando[i] == 1)
                {
                    switch(
PlayerInfo[i][pAdmin])
                    {
                        case 
1337format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",stringsendername,PlayerInfo[i][pFuncao]);
                        case 
3001format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]);
                        case 
5000format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]);
                        case 
1338format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]);
                        default: 
format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",stringsendername,PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                    }
                    if(!
sucesssucess true;
                }
                else
                {
                    switch(
PlayerInfo[i][pAdmin])
                    {
                        case 
1337format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n"string,sendername,PlayerInfo[i][pFuncao]);
                        case 
3001format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n"string,sendername,PlayerInfo[i][pFuncao]);
                        case 
5000format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n"string,sendername,PlayerInfo[i][pFuncao]);
                        case 
1338format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n"string,sendername,PlayerInfo[i][pFuncao]);
                        default: 
format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n"stringsendernamePlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
                    }
                    if(!
sucesssucess true;
                }
            }
        }
        if(
PlayerInfo[i][pAdminTemp] > 0)
        {
            if(
admhide[i] == 0)
            {
                
format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}%s\n",stringsendername, (admtrampando[i] == ? ("") : ("Jogando")));
                if(!
sucesssucess true;
            }
        }
    }
    if(
sucessShowPlayerDialog(playerid1010DIALOG_STYLE_LIST"Administradores Online",string,"Confirmar","Cancelar");
    else 
SendClientMessage(playerid0xFF0000FF,"Erro: Nenhum administrador estб online.");
    return 
true;

Reply


Messages In This Thread
/Admins em dialog - by VulcanoBR - 27.02.2017, 12:29
Re: /Admins em dialog - by Eiffel - 27.02.2017, 14:31
Re: /Admins em dialog - by VulcanoBR - 27.02.2017, 14:55
Re: /Admins em dialog - by VulcanoBR - 02.03.2017, 22:30
Re: /Admins em dialog - by BLacksKrillex - 02.03.2017, 23:18
Re: /Admins em dialog - by vPunisheR - 07.03.2017, 03:38

Forum Jump:


Users browsing this thread: 1 Guest(s)