Raised This Month: $ Target: $400
 0% 

RoundEnd for each player?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sleepwalker
Member
Join Date: Dec 2006
Old 01-07-2009 , 05:18   Re: RoundEnd for each player?
Reply With Quote #5

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!

Last edited by Sleepwalker; 01-07-2009 at 09:02.
Sleepwalker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode