Play sound only for killer & victim
So I want to play random sound on knife kill, but only killer and victim should hear it. I don't know how to point out that rule... emit_sound(..?..., CHAN_AUTO, soundlist[random(sizeof soundlist)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
Here's the sketch: Code:
new soundlist[][] = |
Re: Play sound only for killer & victim
Replace 0 with killer or victim. Index 0 means it will be heard by all players.
Emit_sound is used to play a sound around an entity (specific radius), so you don't need it here. |
| All times are GMT -4. The time now is 07:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.