|
Member
|
08-02-2010
, 08:12
Re: [REQ] Plugin
|
#3
|
I have this plugin
Quote:
//RoundSound.amxx -by PaintLancer
#include <amxmodx>
public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLanc er")
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: client_cmd(0,"spk misc/twinnar")
}
return PLUGIN_HANDLED
}
public ct_win()
{
new rand = random_num(0,2)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/twinnar.wav")
return PLUGIN_CONTINUE
}
|
But after the round i don`t hear the sound why ?what i must to modify to this plugin ?
|
|
|
|