15.03.2014, 13:18
pawn Код:
CMD:admins ( playerid )
{
new c = 0, str[128];
if (PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage( playerid, -1, ""RED"ERROR: "GREY"You must be logged in!");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (PlayerInfo[i][Admin] >= 1)
{
c++;
format(str, sizeof(str), ""REDORANGE"There are "TELEPORTBLUE"%d "REDORANGE"staff member(s) online:\n{%06x}%s(%d) "GREY"(Level: %d)\n", c, (GetPlayerColor(i) >>> 8), GetName(i), i, PlayerInfo[i][Admin]);
ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, ""RED"Admins Online:", str, "OK", "");
}
}
}
return 1;
}