Raised This Month: $ Target: $400
 0% 

RoundSound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deadbunny
Member
Join Date: Apr 2013
Old 05-28-2013 , 14:08   RoundSound
Reply With Quote #1

I find a roundsound which plays mp3 (I know I have another topic with this :-w ) but, when the round is end, the song stops playing .. I want to allow the song to finish to play... Can you help me? I know this: when the round is end, a event is start, but, when the next round starts starts another event, and the music stops... .sma:
Code:
#include <amxmodx>	

#include <amxmisc>	

#include <engine> 



public plugin_init() 

{ 

register_plugin("RoundSound mod","1.1 mod","PaintLancer-mod by Dzek") 

register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin") 

register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin") 

} 

public t_win() 

{ 

new rand = random_num(0,2) 

client_cmd(0,"stopsound") 

switch(rand) 

{ 

case 0: play_any_sound("jbxfreakzmp3/foc.mp3") 

case 1: play_any_sound("jbxfreakzmp3/celebrii.mp3") 

case 2: play_any_sound("jbxfreakzmp3/gangstaintro.mp3") 



} 

return PLUGIN_HANDLED 

} 

public ct_win() 

{ 

new rand = random_num(0,2) 

client_cmd(0,"stopsound") 

switch(rand) 

{ 

case 0: play_any_sound("jbxfreakzmp3/mercedes.mp3") 

case 1: play_any_sound("jbxfreakzmp3/apa.mp3") 

case 2: play_any_sound("jbxfreakzmp3/hero.mp3") 

} 

return PLUGIN_HANDLED 

} 

public play_any_sound(sound[]) 

{ 

new is_mpeg = ( containi(sound, ".mp") != -1 ) 

if ( is_mpeg ) 

client_cmd(0, "mp3 play ^"sound/%s^"", sound) 

else 

client_cmd(0, "spk ^"%s^"", sound) 

} 



public plugin_precache() 

{ 

precache_sound("jbxfreakzmp3/hero.mp3") 

precache_sound("jbxfreakzmp3/apa.mp3") 

precache_sound("jbxfreakzmp3/mercedes.mp3") 

precache_sound("jbxfreakzmp3/gangstaintro.mp3") 

precache_sound("jbxfreakzmp3/celebrii.mp3") 

precache_sound("jbxfreakzmp3/foc.mp3") 



return PLUGIN_CONTINUE 

}
I need to solve this... HELP !

Last edited by deadbunny; 05-28-2013 at 14:49.
deadbunny is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-28-2013 , 14:40   Re: RoundSound
Reply With Quote #2

If you have another thread about this, why did you start this one? Besides, the first one was only posted a few days ago.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
deadbunny
Member
Join Date: Apr 2013
Old 05-28-2013 , 14:50   Re: RoundSound
Reply With Quote #3

Because I learn this:
Quote:
Originally Posted by deadbunny View Post
I know this: when the round is end, a event is start, but, when the next round starts starts another event, and the music stops...

Last edited by deadbunny; 05-28-2013 at 14:50.
deadbunny is offline
Reply


Thread Tools
Display Modes

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 16:20.


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