Attach a sound?
How do attach a sound to a paticular player that all the other
players can hear when near that paticular player? I tried emit_sound but it doesn't seem to work :( Thanks for any help! |
emit_sound should work...
I use the voice channel (CHAN_VOICE) with normal attenuation and pitch. For e.g: emit_sound(id, CHAN_VOICE, "bleedsample.wav", 1.0, ATTN_NORM, 0, PITCH_NORM); Make sure you precache your sound first though, in the plugin_precache callback. precache_sound("bleedsample.wav"); |
What about new players (who've just joined the game) being unable to
hear the sound until the given player dies? I've heard this is a problem but I don't know much about it. |
Quote:
It appears that only the sound that the player is attached to can hear it. I want everybody near the player to be able to hear it. |
I used that exact code in my jetpack revamp plugin mate. Everyone can hear it.
Perhaps you're doing something else wrong? I dunno :shock: |
well here is my code
Code:
policeradio_resetall() {so they can hear it. |
Hmm.
Have you precached the sound files? If so, attach the full plugin and I'll take a look for you. |
| All times are GMT -4. The time now is 16:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.