Quote:
Originally Posted by Black Rose
... what are you doing? It's working fine.
Code:
L 08/22/2013 - 01:12:11: "Black Rose<53><STEAM_0:1:-snip-><>" joined team "TERRORIST"
L 08/22/2013 - 01:12:12: [test7.amxx] On My Public.
|
I change a little the code and its always printing me the same message.
Code:
Code:
public FwFirstThink( iEntity )
{
static szClassname[ 32 ];
pev( iEntity, pev_classname, szClassname, charsmax( szClassname ) );
server_print( "On think." );
if( !equali( szClassname, g_szFirstClass ) )
{
set_think( g_iFirstEnt, 1.0 );
server_print( "Updating next time. [1]" );
return 1;
}
if( g_bActive )
{
set_think( iEntity, 1.0 );
server_print( "Updating next time. [2]" );
return 1;
}
new players[ 32 ], pnum;
new tCount, ctCount;
get_players( players, pnum, "c" );
for( new i = 0; i < pnum; i++ )
{
if( !is_user_connected( players[ i ] ) )
continue;
switch( cs_get_user_team( players[ i ] ) )
{
case CS_TEAM_T:
tCount++;
case CS_TEAM_CT:
ctCount++;
}
}
if ( ( tCount <= 1 && ctCount >= 0 ) || ( tCount / ctCount > 5 ) && !g_bActive )
{
server_print( "Starting First" );
g_bActive = true;
g_iCountdown = 5;
set_task( 1.0, "CmdFirstCountdown", g_iCountdownTask, _, _, "b" );
}
set_think( iEntity, 1.0 );
server_print( "Updating next time. [3]" );
return 1;
}
Message:
PHP Code:
On think.
Updating next time. [1]
Thanks for help.