Quote:
Originally Posted by jlalt
Here you go ;_;
PHP код:
CMD:admins(playerid, params[])
{
new Handle[560],string[80], count = 0;
SendClientMessage(playerid, -1, "** "orange"Online Administrators "white"**");
foreach(new i : Player)
{
if(User[i][accountLogged] == 1)
{
if(User[i][accountAdmin] >= 1)
{
format(string, sizeof(string), "(%d) %s - Level %d Admin", i, pName(i), User[i][accountAdmin]);
strcat(Handle, string);
//SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
count++;
}
}
}
if(count == 0) {
SendClientMessage(playerid, -1, "No administrators online at the server.");
}
else {
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Online Administrators", Handle, "Close", "");
}
return 1;
}
|
Thank You, It's really working.