i have this plugin-in running perfectly at teh end of the round it should only play one song but both teams can hear it. I have a total of 16 sound clips 14 of them i made mostly edits of mp3's and turned them into wav files and also edited them to play as mono. i have "welcome to the jungle, we are the champions, some motorhead and a bunch more" this is what my sma looks like.
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLancer")
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,7)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/twinnar")
case 1: client_cmd(0,"spk misc/twinnar2")
case 2: client_cmd(0,"spk misc/twinnar3")
case 3: client_cmd(0,"spk misc/twinnar4")
case 4: client_cmd(0,"spk misc/twinnar5")
case 5: client_cmd(0,"spk misc/twinnar6")
case 6: client_cmd(0,"spk misc/twinnar7")
case 7: client_cmd(0,"spk misc/twinnar8")
}
return PLUGIN_CONTINUE
}
public ct_win()
{
new rand = random_num(0,7)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
case 1: client_cmd(0,"spk misc/ctwinnar3")
case 2: client_cmd(0,"spk misc/ctwinnar4")
case 3: client_cmd(0,"spk misc/ctwinnar5")
case 4: client_cmd(0,"spk misc/ctwinnar6")
case 5: client_cmd(0,"spk misc/ctwinnar7")
case 6: client_cmd(0,"spk misc/ctwinnar8")
case 7: client_cmd(0,"spk misc/ctwinnar9")
}
return PLUGIN_CONTINUE
}
hope this helps.... i don't precache the files so i just took it out.