03.12.2014, 17:29
Try this:
pawn Код:
CMD:staff(playerid, params[])
{
* * new string[128];
* * if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
* * SendClientMessage(playerid,COLOR_ORANGE, "Administrators:");
* * foreach(Player, i)
* * {
* * * * if(PlayerInfo[i][pAdmin] >= 1)
{
* * * * if(Busy[playerid] == 0)
* * * * {
* * * * * * * * format(string, sizeof(string), "Name: %s Level: %d{1EFF00}(Available)", RPN(i),PlayerInfo[i][pAdmin]);
* * * * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
* * * * }
* * * * else if(Busy[playerid] == 1)
* * * * {
* * * * * * * * format(string, sizeof(string), "Name: %s Level: %d{FF0000}(Busy)", RPN(i),PlayerInfo[i][pAdmin]);
* * * * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
* * * * *}
}
* * }
* * SendClientMessage(playerid,COLOR_ORANGE, "Moderators:");
* * foreach(Player, i)
* * {
* * * * if(PlayerInfo[i][pMod] >= 1)
{
* * * * if(Busy[playerid] == 0)
* * * * {
* * * * * * * * format(string, sizeof(string), "Name: %s{1EFF00}(Available)", RPN(i));
* * * * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
* * * * }
* * * * else if(Busy[playerid] == 1)
* * * * {
* * * * * * * * format(string, sizeof(string), "{FF0000}Name: %s(Busy)", RPN(i));
* * * * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
* * * * }
}
* * }
* * SendClientMessage(playerid,COLOR_ORANGE, "Helpers:");
* * foreach(Player, i)
* * {
* * * * if(PlayerInfo[i][pHelper] >= 1)
* * * * {
* * * * * * * * format(string, sizeof(string), "Name: %s", RPN(i));
* * * * * * * * SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
* * * * }
* * }
* * return 1;
}

