Does there is a way to determinate the winner and loser team of a map (after 2 rounds in vs) to use it in a plugin?
edit: found that even if i'm not sure how to use it
Code:
/**
* @brief Get the team scores for the current map
* @remarks The campaign scores are not set until the end of round 2,
* use L4D_GetCampaignScores to get them earlier.
*
* @deprecated This function can be called through SDKTools using CTerrorGameRules,
* and so you should switch off to using SDKTools instead of this native.
*
* @param logical_team 1 for A, 2 for B
* @param campaign_score true to get campaign score instead of map score
*
* @return the logical team's map score
* or -1 if the team hasn't played the round yet,
* or the team's campaign score if campaign_score = true
*/
// L4D2 only.
native int L4D_GetTeamScore(int logical_team, bool campaign_score=false);