about FM_EmitSound,help!
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... |
| All times are GMT -4. The time now is 07:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.