27.02.2017, 14:31
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(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(admhide[i] == 0)
{
if(admtrampando[i] == 1)
{
switch(PlayerInfo[i][pAdmin])
{
case 1337: format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string, sendername,PlayerInfo[i][pFuncao]);
case 3001: format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]);
case 5000: format(string,sizeof(string),"%s {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]);
case 1338: format(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",string, sendername,PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
}
if(!sucess) sucess = true;
}
else
{
switch(PlayerInfo[i][pAdmin])
{
case 1337: format(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 3001: format(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 5000: format(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 1338: format(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", string, sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
}
if(!sucess) sucess = 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",string, sendername, (admtrampando[i] == 1 ? ("") : ("Jogando")));
if(!sucess) sucess = true;
}
}
}
if(sucess) ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
else SendClientMessage(playerid, 0xFF0000FF,"Erro: Nenhum administrador estб online.");
return true;
}