31.12.2010, 08:27
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count,string[255];
new AdmRank[128];
for(new i,g=GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
if(1 <= PlayerInfo[i][Level] <= 6)
{
if(IsPlayerAdmin(i)) AdmRank = "Rcon Administrator";
switch(PlayerInfo[i][Level])
{
case 1: AdmRank = "VIP";
case 2: AdmRank = "Co-Mod";
case 3: AdmRank = "Mod";
case 4: AdmRank = "Admin";
case 5: AdmRank = "Leader";
case 6: AdmRank = "Manager";
}
format(string,255, "%s %s [%s], ",string,PlayerName2(i),AdmRank);
SendClientMessage(playerid, blue, string);
count++;
}
}
}
if(!count) SendClientMessage(playerid,red,"No admin online in the list");
return 1;
}