My code is like this:
Code:
1. Check so there is a player on each team and not just 2 players
2. If there is a player in each team check what team is the winner
3. If it is T team that is the winning team... do nothing
If it is CT team that is the winning team... run:
cs_switch_teams();
cs_set_team_score(1, teamScores[CTS]);
cs_set_team_score(2, teamScores[TS]);
But my problem is that
Code:
cs_set_team_score(1, teamScores[CTS]);
cs_set_team_score(2, teamScores[TS]);
is running for each player and not once as I want.
* EDIT *
I have tested to switch from:
Code:
register_logevent("event_EndRound",2,"1=Round_End");
to:
Code:
register_event("SendAudio", "event_EndRound", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin");
But it stoped working when I did that.
Sorry for my bad english!