Alright, so i am using this code.
But sometimes it thinks that 1 of the 1 is a CT so it stops the game.
How can i make it that it stops the game when there is 1 T left AND/OR 0 CTs left.
PHP Code:
public Ham_PlayerKilled( iVictim, iAttacker, shouldgib )
{
if( g_iCurrentGame == FUN_13 || !is_user_connected( iVictim ) || !is_user_alive( iAttacker ) )
return HAM_IGNORED;
if( g_iCurrentGame == FUN_12 || !is_user_connected( iVictim ) || !is_user_alive( iAttacker ) )
return HAM_IGNORED;
if( g_iCurrentGame == FUN_1 || !is_user_connected( iVictim ) || !is_user_alive( iAttacker ) )
return HAM_IGNORED;
if( g_iCurrentGame != GAME_NO )
{
new iPlayers[ 32 ], iCount;
get_players( iPlayers, iCount, "aech", "TERRORIST" )
if( iCount == 1 ) StopGame();
}
}