08.02.2015, 07:44
Well, yeah... I suppose....
pawn Код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, green, " ");
SendClientMessage(playerid, green, "___________ |- Online Admin's -| ___________");
SendClientMessage(playerid, green, " ");
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(!PlayerInfo[i][Level]) continue;
new string[90], playersname[MAX_PLAYER_NAME];
GetPlayerName(i, playersname, sizeof(playersname));
switch(PlayerInfo[i][Level])
{
case 1: format(string, sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Basic Moderator | Playing!", playersname, i, PlayerInfo[i][Level]);
case 2: format(string, sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Moderator | Playing!", playersname, i, PlayerInfo[i][Level]);
case 3: format(string, sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Master Moderator | Playing!", playersname, i, PlayerInfo[i][Level]);
case 4: format(string, sizeof(string), "{7CFC00}%s (ID:%i) - Level: %d | Administrator | Playing!", playersname, i, PlayerInfo[i][Level]);
case 5: format(string, sizeof(string), "{1E90FF}%s (ID:%i) - Level: %d | Master Administrator | Playing!", playersname, i, PlayerInfo[i][Level]);
case 6: format(string, sizeof(string), "{00FFFF}%s (ID:%i) - Level: %d | Professional Admin | Playing!", playersname, i, PlayerInfo[i][Level]);
case 7: format(string, sizeof(string), "%s (ID:%i) - Level: %d | Super Admin | Playing!", playersname, i, PlayerInfo[i][Level]);
case 8: format(string, sizeof(string), "{FF0000}%s (ID:%i) - Level: %d | Delta Administrator | Playing!", playersname, i, PlayerInfo[i][Level]);
default: continue;
}
SendClientMessage(playerid, NICE_PINK, string);
count++;
}
if(!count) SendClientMessage(playerid, NICE_PINK, "No admin online in the list");
SendClientMessage(playerid, green, " _______________________________________");
return 1;
}