You can easily hook when a team wins, if that solves your problem. The below will handle when all players die on a particular team.
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
public plugin_init()
{
RegisterHam( Ham_Killed , "player" , "HamKilled_Post" , true );
}
public HamKilled_Post( iPlayer )
{
new iPlayers[ 32 ] , iNum , CsTeams:csPlayerTeam;
csPlayerTeam = cs_get_user_team( iPlayer );
get_players( iPlayers , iNum , "ae" , ( csPlayerTeam == CS_TEAM_T ) ? "TERRORIST" : "CT" );
if ( !iNum )
{
AllPlayersDead( csPlayerTeam );
}
}
public AllPlayersDead( CsTeams:csDeadTeam )
{
//All players on csDeadTeam are dead
}
__________________