22.09.2013, 12:43
Done, use this:
pawn Код:
CMD:admins( playerid, params[ ] )
{
new
count
;
SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] List of Online Administrators:" );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) ) continue;
if( pInfo[i][pAdminlevel] > 99999999999999999999999999 )
{
new
temp[ 32 ],
name_[ MAX_PLAYER_NAME ]
;
GetPlayerName( i, name_, MAX_PLAYER_NAME );
format( temp, sizeof( temp ), "<%d> %s((Admin Level: %d))", i, name_, pInfo[ i ][ pAdminLevel ] );
SendClientMessage( playerid, 0xFF0000FF, temp );
count++;
}
}
if(count == 0)
{
SendClientMessage( playerid, COLOR_RED1, "- No Admins Currently Online." );
SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] End of List !" );
}
else SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] End of List !" );
return 1;
}

