QCMD:admins(){ SCM(playerid, 0xFF9900AA, "Administrбtori On-line:"); ForPlayers(i){ if(IsPlayerAdmin(i)){ if(Admin[i] > 0) SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ LVL %d + RCON ]",Jmeno(i),Admin[i]); else SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ RCON ]",Jmeno(i)); } else if(Admin[i] > 0){ SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ LVL %d ]",Jmeno(i),Admin[i]); } } return true; }
please convert this to the admins online dialog
Код:
QCMD:admins(){ SCM(playerid, 0xFF9900AA, "Administrбtori On-line:"); ForPlayers(i){ if(IsPlayerAdmin(i)){ if(Admin[i] > 0) SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ LVL %d + RCON ]",Jmeno(i),Admin[i]); else SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ RCON ]",Jmeno(i)); } else if(Admin[i] > 0){ SCMF(playerid,0x33CCFFAA,"[On-line] %s | [ LVL %d ]",Jmeno(i),Admin[i]); } } return true; } |
QCMD:admins()
{
new string[128], str[256];
ForPlayers(i)
{
if(IsPlayerAdmin(i))
{
if(Admin[i] > 0)
{
format(string, sizeof(string), "{33CCFF}[On-line] %s | [ LVL %d + RCON ]\n", Jmeno(i), Admin[i]);
strcat(str, string);
}
else if(Admin[i] <= 0)
{
format(string, sizeof(string), "{33CCFF}[On-line] %s | [ RCON ]\n", Jmeno(i));
strcat(str, string);
}
}
else
{
if(Admin[i] > 0)
{
format(string, sizeof(string), "{33CCFF}[On-line] %s | [ LVL %d ]\n", Jmeno(i), Admin[i]);
strcat(str, string);
}
}
}
ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "{FF9900}Administrбtori On-line:", str, "OK", "");
return true;
}