05.09.2009, 02:36
It actually shows to each player his admin level.
Try this:
Also I guess you don't need to check whether players connected since all pInfo vars are cleared when they connect/disconnect.
Try this:
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] List of online adminstrators");
for (new i; i < MAX_PLAYERS; i ++)
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 4)
{
new
adminname[MAX_PLAYER_NAME];
GetPlayerName(i, adminname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s - level: %d", adminname, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_ADMIN, string);
}
}
return 1;
}