06.04.2011, 16:01
pawn Код:
if(!strcmp(cmdtext, "/admins"))
{
new string[128], playername[MAX_PLAYER_NAME], text[40];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, playername, sizeof(playername));
if(playerinfo[i][AdminLevel] == 1) { text = "Level 1" }
if(playerinfo[i][AdminLevel] == 2) { text = "Level 2" }
if(playerinfo[i][AdminLevel] == 3) { text = "Level 3" } // Etc. Add more if you have more levels.
}
format(string, sizeof(string), "%s: %s", text, playername);
SendClientMessage(playerid, 0xFFFFFF, string);
return 1;
}