10.04.2014, 00:09
Thats my problem,
My code
pawn Код:
CMD:staff(playerid, params[])
{
new online, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin])
{
online ++;
}
}
format(string, sizeof(string), "________Divoro Staff Team________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin])
if(PlayerInfo[i][pHelper])
{
SendClientMessage(playerid,COLOR_ORANGE, "Administrators:");
format(string, sizeof(string), "%s %s", RPALN(i), RPN(i));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid,COLOR_ORANGE, "Helpers:");
format(string, sizeof(string), " %s ",RPN(i));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
format(string, sizeof(string), "_________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}