16.02.2012, 21:53
Код:
Problem? : BUG
pawn Код:
CMD:admins(playerid,params[])
{
new aName[MAX_PLAYER_NAME], amsg[128];
new count;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected (i) || pData[i][pAdmin] < MODERATOR) continue;
count ++;
GetPlayerName(i,aName,sizeof(aName));
{
SendClientMessage(playerid,color_green,"------<< Online Administrators >>------");
if(IsPlayerAdmin(i))
{
format(amsg,sizeof(amsg),"[ %s ] == "#cowner"RCON Administrator",aName);
SendClientMessage(playerid,color_white,amsg);
}
switch(pData[i][pAdmin])
{
case MODERATOR:
{
format(amsg,sizeof(amsg),"[ %s ] == "#cmod"MODERATOR",aName);
SendClientMessage(playerid,color_white,amsg);
}
case ADMINISTRATOR:
{
format(amsg,sizeof(amsg),"[ %s ] == "#cadmin"ADMINISTRATOR",aName);
SendClientMessage(playerid,color_white,amsg);
}
case OWNER:
{
format(amsg,sizeof(amsg),"[ %s ] == "#cowner"OWNER / DEVELOPER",aName);
SendClientMessage(playerid,color_white,amsg);
}
}
if(!count) return SendClientMessage(playerid,color_red,"No Online Server Workers");
}
}
return 1;
}