Raised This Month: $ Target: $400
 0% 

Erro with end round sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Veggetta
Member
Join Date: Mar 2008
Location: Portugal
Old 08-30-2013 , 12:37   Erro with end round sound
Reply With Quote #1

hey guys, i have this:

Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
		
	register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin") 
	register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin") 
}

public t_win() 
{ 
	client_cmd(0,"stopsound") 
	
	new players[32], count;
	get_players(players, count, "ch")
	
	for( new i; i < count; i++ )
         {
	 	new pid = players[i];  
		
		if(cs_get_user_team(pid) & CS_TEAM_T)
		{
			new rand = random_num(1,2) 
			switch(rand) 
			{ 
				case 1: client_cmd(pid,"spk sound/final_round1") 
				case 2: client_cmd(pid,"spk sound/final_round2") 
			} 
		}
	}
}

public ct_win() 
{ 
	client_cmd(0,"stopsound") 
	
	new players[32], count;
	get_players(players, count, "ch")
	
	for( new i; i < count; i++ )
         {
	 	new pid = players[i];
		
		if(cs_get_user_team(pid) & CS_TEAM_CT)
		{
			new rand = random_num(1,3) 
			switch(rand) 
			{ 
				case 1: client_cmd(pid,"spk sound/final_round1") 
				case 2: client_cmd(pid,"spk sound/final_round2") 
				case 3: client_cmd(pid,"spk sound/final_round3")
			} 
		}
	}
}
But isn't working .. Can anyone find the problem .. i looked at it 10000 times over and over and can't find the problem :s
Veggetta is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 08-30-2013 , 16:10   Re: Erro with end round sound
Reply With Quote #2

Full code please.
__________________
Like my clean plugins and work?
Baws is offline
Reply



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 18:59.


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