08.01.2014, 14:44
You should try this:
ZCMD:
Didn't tested it yet
ZCMD:
Code:
CMD:admins(playerid, params[]) { SendClientMessage(playerid, 0x1FFFFFF, "Administrators online:"); { new level[128], string[128]; if(PlayerInfo[playerid][pAdminLevel] >= 0) { switch(PlayerInfo[playerid][pAdminLevel]) { case 1: level = ""adminlevel1" (1)"; case 2: level = ""adminlevel2" (2)"; case 3: level = ""adminlevel3" (3)"; case 4: level = ""adminlevel4" (4)"; case 5: level = ""adminlevel1338" (1338)"; case 6: level = ""adminlevel1999" (1999)"; case 7: level = ""adminlevel2000" (2000)"; case 8: level = ""adminlevel2013" (2013)"; case 9: level = ""adminlevel2014" (2014)"; } format(string, sizeof(string), "%d - %s", level, GetPlayerName(pName) ); SendClientMessage(playerid, 0xFFF84FFFF, string); } } return 1; }