diff options
-rw-r--r-- | src/game/g_admin.c | 7 | ||||
-rw-r--r-- | src/game/g_admin.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index afa854f..ff65e70 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4597,23 +4597,24 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) int l; char lname_fmt[ 5 ]; + //Get amount of invisible players for( i = 0; i < level.maxclients; i++ ) { p = &level.clients[ i ]; if ( p->sess.invisible == qtrue ) invisiblePlayers++; } - + ADMBP_begin(); ADMBP( va( "^3!listplayers^7: %i players connected:\n", level.numConnectedClients - invisiblePlayers ) ); for( i = 0; i < level.maxclients; i++ ) { p = &level.clients[ i ]; - + // Ignore invisible players if ( p->sess.invisible == qtrue ) continue; - + Q_strncpyz( t, "S", sizeof( t ) ); Q_strncpyz( c, S_COLOR_YELLOW, sizeof( c ) ); if( p->pers.teamSelection == PTE_HUMANS ) diff --git a/src/game/g_admin.h b/src/game/g_admin.h index 08bd58b..602406a 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -85,7 +85,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ADMF_IMMUTABLE "IMMUTABLE" #define ADMF_INCOGNITO "INCOGNITO" -#define ADMF_SEESINCOGNITO "SEESINCOGNITO" +#define ADMF_SEESINCOGNITO "SEESINCOGNITO" #define ADMF_ADMINCHAT "ADMINCHAT" #define ADMF_HIGHADMINCHAT "HIGHADMINCHAT" #define ADMF_SEESFULLLISTPLAYERS "SEESFULLLISTPLAYERS" |