05.08.2011, 04:22
pawn Код:
COMMAND:admins(playerid, params[])
{
new
icount,
szAdminName[MAX_PLAYER_NAME];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][Level])
{
if(!icount)
SendClientMessage(playerid, 0x00FF00AA, "--- Online Admins ---");
icount++;
GetPlayerName(i, szAdminName, MAX_PLAYER_NAME);
SendClientMessage(playerid, 0x00FF00AA, szAdminName);
}
}
if(!icount)
SendClientMessage(playerid, 0x00FF00AA, "No admins online");
return 1;
}