10.01.2013, 05:18
Ok, Name your Levels yourself.
pawn Код:
CMD:admins(playerid,params[])
{
new Count, string[128],n[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________|Admins|__________");
foreach(Player, i)
{
if(PlayerInfo[i][Level] ==1) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 1 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==2) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 2 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==3) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 3 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==4) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 4 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==5) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 5 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==6) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 6 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==7) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 7 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==8) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 8 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==9) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 9 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
if(PlayerInfo[i][Level] ==10) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level 10 : %s",n);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
Count++;
}
}
if(Count == 0) SendClientMessage(playerid, COLOR_LIGHTBLUE, "No Admins Online");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________________________");
return 1;
}