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}[MOD]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 2)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[ADM]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 3)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[Chefe]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 4)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[Guardiгo]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 5)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[Dono]\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(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;
}
switch (padmin) { case 1: { } case 2: { } case 3: { } case 4: { } case 5: { } } |