04.03.2014, 16:08
pawn Код:
COMMAND:admins(playerid, params[])
{
new string[1000], count;
foreach(Player, i)
{
switch (P_Data[i][pAdmin])
{
case 1: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 1 (Moderator)",GetName(i), i);
case 2: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 2 (Junior Admin)",GetName(i), i);
case 3: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 3 (Senior Admin)",GetName(i), i);
case 4: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 4 (Lead Admin)",GetName(i), i);
case 5: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 5 (Manager Admin)",GetName(i), i);
case 6: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 6 (Global Admin)",GetName(i), i);
case 7: format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 7 (Server Owner)",GetName(i), i);
default: continue;
}
++count;
}
if (count)
{
SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
SCM(playerid, -1, ""COL_YELLOW" Online Admins");
SCM(playerid,-1,string);
SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
}
else SCM(playerid,-1,""COL_MARONE"-No Administrators Are Online-");
return 1;
}