12.05.2015, 03:40
pawn Код:
CMD:admins(playerid, params[])
{
new count = 0, string[760];
for(new i = 0, j = GetPlayerPoolSize(); i != j; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][Hide] || !PlayerInfo[i][Level]) continue;
new nameee[MAX_PLAYER_NAME], AdmRank[45], fstr[95];
GetPlayerName(i, nameee, sizeof(nameee));
if(!strcmp(nameee, "[XP]IzZaN", true)) AdmRank = "{B22222}[Community Owner And Scripter]";
/*else if(!strcmp(nameee, "NONE-NOBODY", true)) AdmRank = "{FF4500}[Server Owner]";
else if(!strcmp(nameee, "NONE-NOBODY", true)) AdmRank = "{FF4500}[Co-Owner]";*/ // Why does this even exist?
else if(!strcmp(nameee, "[XP]Perfect_Boy", true)) AdmRank = "{FA8072}[Community Owner]";
else switch(PlayerInfo[i][Level])
{
case 1: AdmRank = "{FFD700}[Trial Admin]";
case 2: AdmRank = "{FF4500}[Server Admin]";
case 3: AdmRank = "{1E90FF}[Senior Admin]";
case 4: AdmRank = "{0000CD}[Lead Admin]";
case 5: AdmRank = "{00FF00}[Head Admin]";
case 6: AdmRank = "{4B0082}[Server Manager]";
case 7: AdmRank = "{F08080}[Server Co-Owner]";
case 8: AdmRank = "{FF1493}[Sever Owner]";
case 9: AdmRank = "{800000}[Community Co-Owner]";
case 10: AdmRank = "{FF0000}[Community Owner]";
default: continue;
}
if(IsPlayerAdmin(i)) AdmRank ="{F3FF02}[The Server Guy!]";
format(fstr, sizeof(fstr), "%s [ID:%d] | Level %d - %s\n\n", nameee, i, PlayerInfo[i][Level], AdmRank);
strcat(string, fstr);
count++;
if(count >= 8) break; // Just so we don't have to create a MASSIVE string
}
if(!count) strcat(string, "{00FFEE}No Admins Are Online in Server\n\n");
strcat(string, "{00FF00}COD - RWW2");
ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}RWW2 - Online Admins :", string, "Close", "");
return 1;
}