23.11.2010, 14:21
or that :P
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count,string[255];
for(new i,g=GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
if(1 <= PlayerInfo[i][Level] <= 5)
{
if(IsPlayerAdmin(i)) AdmRank = "RCON Administrator";
switch(PlayerInfo[i][Level])
{
case 1: AdmRank = "Basic Moderator";
case 2: AdmRank = "Moderator";
case 3: AdmRank = "Mod";
case 4: AdmRank = "Admin";
case 5: AdmRank = "Owner";
}
format(string,255, "%s%s [%s], ",string,PlayerName2(i),AdmRank);
count++;
}
}
}
format(string,255,"Admins: %s",string);
SendClientMessage(playerid, blue, string);
if(!count) SendClientMessage(playerid,red,"No admin online in the list");
return 1;
}