12.10.2011, 19:47
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Admins Online ______________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 10)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "{33AA33}%s {AA3333}| Level: %d |", sendername, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
return 1;
}