27.11.2012, 11:59
pawn Код:
CMD:admins(playerid, params[])
{
new Count = 0;
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
new str[1000];
new Admin[MAX_PLAYER_NAME];
GetPlayerName(i, Admin, sizeof(Admin));
format(str, sizeof(str), "[Admin]'%s - level %d", Admin, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, lightred, str);
Count++;
}
}
if(Count == 0)
{
SendClientMessage(playerid, lightred, "[System]: No Admin Online!");
}
return 1;
}