|
Author
|
Message
|
|
Member
|

02-03-2010
, 04:54
about FM_EmitSound,help!
|
#1
|
public plugin_init()
{
register_plugin("test", "0.1", "test");
register_forward(FM_EmitSound,"fw_EmitSound")
}
public fw_EmitSound (id, channel, const sample[], Float:volume, Float:attn, flags, pitch)
{
if (sample[11] == 'h' && sample[12] == 'u' && sample[13] == 'd' && sample[14] == 'o' && sample[15] == 'n')
log_amx("it's ok")
if (contain(sample, "wpn_hudon") != -1)
log_amx("it's ok!!!")
}
ps: "valve\sound\common\wpn_hudon.wav"
now,it's not work, why ???? thanks...
|
|
|
|