if(strcmp(cmd, "/admins", true) == 0)
{
new str[1000], count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(admin[i])
{
if(pAdmin[i] == 1)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[Ajudante]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 2)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[MOD]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 3)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[SUPERMOD]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 4)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[ADMINISTRADOR]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 5)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[SUBDONO]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 6)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[DONO]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 7)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[DONOGERAL]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
count++;
}
}
}
if(count == 0)
{
ShowPlayerDialog(playerid, playersimp, DIALOG_STYLE_MSGBOX, ".:: - ADM's Online - ::.", "{FF0000}Nгo hб ADM's online no momento.", "OK", "");
}
else
{
ShowPlayerDialog(playerid, playersimp, DIALOG_STYLE_MSGBOX, ".:: - ADM's Online - ::.", string, "OK", "");
}
return 1;
}
if(strcmp("/setadmin", cmd, true) == 0)
{
#if defined SystemAdminUser
if(PlayerInfo[playerid][SCON] == true)
{
new plid, lvl;
if(sscanf(cmdtext, "s[10]ud", cmd, plid, lvl))
{
SendClientMessage(playerid, Vermelho, "Digite: /setadmin [id] [level]");
return 1;
}
if(lvl >=
{
SendClientMessage(playerid, Vermelho, "O level permitido para ADM й de 0 a 7!");
return 1;
}
if(IsPlayerConnected(plid))
{
PlayerSetPlayerAdmin(playerid, plid, lvl);
}
else
{
SendClientMessage(playerid, Vermelho, "Jogador nгo conectado!");
}
}
#else
SendClientMessage(playerid, Azul, "Comando desativado temporбriamente.");
#endif
return 1;
}