Don't use #2 code
get_players is always better than looping from 1 to 32, or than from 1 to maxplayers.
PHP Code:
public client_putinserver ( id )
{
if( !g_bIsFreezeTime && !is_user_bot( id ) && !is_user_hltv( id ) )
{
new iTEcount, iCTcount, players[32];
get_players(players, iTEcount, "e", "TERRORIST");
get_players(players, iCTcount, "e", "CT");
if ( iTEcount >= 2 && iCTcount >= 2 )
{
set_pdata_int( id, m_iNumSpawns, 1 );
}
}
}
__________________