RoundEnd for each player?
I'm trying to switch scores on the team but when it do it switch it for each player and I just want to do it once. So it switches the team score 3 times if it is 3 players on the server. Why?
Code:
register_logevent("event_EndRound",2,"1=Round_End");Code:
public event_EndRound() { |
Re: RoundEnd for each player?
Code:
Also, use switch( get_user_team(x) ) would be better, or store the value in a variable. Haven't time to look further in your code. |
Re: RoundEnd for each player?
The code you wrote will not work for me. If you look again you can se that I just want to check that it is a player on each team.
|
Re: RoundEnd for each player?
nobody know your logic from your code
if you just want to know which team win the round register event like this Code:
register_event("SendAudio","t_win","a","2=%!MRAD_terwin") |
Re: RoundEnd for each player?
My code is like this:
Code:
1. Check so there is a player on each team and not just 2 playersCode:
cs_set_team_score(1, teamScores[CTS]);* EDIT * I have tested to switch from: Code:
register_logevent("event_EndRound",2,"1=Round_End");Code:
register_event("SendAudio", "event_EndRound", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin");Sorry for my bad english! |
Re: RoundEnd for each player?
Someone?
|
| All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.