PHP Code:
GetDeadCTCount( ) {
static iPlayers[ 32 ], iNum;
/* b = Alive players are skipped, e = Match with the followed team */
get_players( iPlayers, iNum, "be", "CT" );
return iNum;
}
Is not working in
Zombie Plague though.
For
Zombie Plague:
PHP Code:
#include < fakemeta >
#define OFFSET_CSTEAMS 114
#define TEAM_CT 2
#define TEAM_T 1
GetAliveHumansCount( ) {
static i, maxClients, iCount; if( !maxClients ) maxClients = get_maxplayers( ); iCount = 0;
for( i = 1; i < maxClients + 1; i++ )
if( is_user_connected( i ) && !is_user_alive( i ) && get_pdata_int( i, OFFSET_CSTEAMS ) == TEAM_CT )
iCount++;
return iCount;
}
__________________