Wrong answer.
Code:
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
FwThink was called.
Entity is valid.
Wrong entity, updating nextthink.
Here's what it should look like.
Code:
public FwThink( iEntity )
{
if ( iEntity != g_iEntity || ! pev_valid(iEntity) )
return;
new iPlayers[ 32 ], iCtCount, iTerrorCount;
get_players( iPlayers, iCtCount, "ceh", "CT" );
get_players( iPlayers, iTerrorCount, "ceh", "TERRORIST" );
if ( ( ! iCtCount && iTerrorCount 1 ) || ( iCtCount <= 1 && iTerrorCount >= 10 ) || ( iCtCount <= 2 && iTerrorCount >= 15 ) || ( iCtCount <= 3 && iTerrorCount >= 20 ) )
{
MyPublic();
return;
}
CmdSetThink( g_iEntity, 1.0 );
}
__________________