Quote:
Originally Posted by edgaras85
It is all plugin
|
Oops, I missed how it was doing the counting

. Just a sec and I will edit it.
EDIT:
Code:
public FwdThink(iEntity)
{
ShowMessage();
entity_set_float( iEntity, EV_FL_nextthink, get_gametime( ) + DELAY );
}
public ShowMessage()
{
new iPlayers[ 32 ], iNum[ TEAMS ];
get_players( iPlayers, iNum[ CT ], "ae", "CT" );
get_players( iPlayers, iNum[ TE ], "ae", "TERRORIST" );
if( iNum[ TE ] > 0 || iNum[ CT ] > 0 )
{
new iCvars[ CVARS ];
iCvars[ RED ] = get_pcvar_num( g_pCvars[ RED ] );
iCvars[ GREEN ] = get_pcvar_num( g_pCvars[ GREEN ] );
iCvars[ BLUE ] = get_pcvar_num( g_pCvars[ BLUE ] );
iCvars[ LOCATION ] = get_pcvar_num( g_pCvars[ LOCATION ] );
if( iCvars[ LOCATION ] > sizeof( g_flCoords ) - 1 ) {
set_pcvar_num( g_pCvars[ LOCATION ], 1 );
iCvars[ LOCATION ] = 1;
}
set_hudmessage( iCvars[ RED ], iCvars[ GREEN ], iCvars[ BLUE ],
g_flCoords[ iCvars[ LOCATION ] ][ 0 ], g_flCoords[ iCvars[ LOCATION ] ][ 1 ], 0, HUD_STAY, HUD_STAY, 0.0, 0.0, 3 );
for(new i = 0; i < iNum[TE]; i++)
{
show_hudmessage(iPlayers[i], "Counter-Terrorists Remaining: %i", iNum[ CT ] );
}
}
}
There are TWO (2) infinite loops in this code! Both calling the same function!
__________________