How to block a sound
Simple question... how can i block a sound that is in the "sound" folder? In "cstrike", not "valve".
Thx to much. |
Re: How to block a sound
FM_EmitSound ?
|
Re: How to block a sound
Sry, i forget about that... now i tried this but doesn't work:
PHP Code:
Thx. |
Re: How to block a sound
That would be right if the sound is at:
cstrike/sound/ravesound.wav |
Re: How to block a sound
Hmm and... what is wrong?
The specific destination of file? ("ravesound.wav") Or the FM_EmitSound to detect a sound that is in "cstrike/sound"? Or something new that i have to do into the FM_EmitSound? Thx. EDIT: Also, changed equali to equal cuz is useless to use that here >< |
Re: How to block a sound
I said that if the sound file for that map is located at: cstrike/sound/ravesound.wav then your plugin should work fine.
EmitSound hooks sound files from the cstrike/sound directory. Example, if you are hooking the cstrike/sound/weapons/knife_deploy1.wav , then you would use "weapons/knife_deploy1.wav" in the plugin. |
Re: How to block a sound
Oh, i misunderstand what you said...
So, my plugin should work fine, the problem is that don't work o.o P.S: Is a sound of the map (surf_warped) maybe this is the problem? =/ |
Re: How to block a sound
This should work. Didn't test it though...
PHP Code:
|
Re: How to block a sound
Hi... i post to say: "Thx hlstriker"...
The code work perfect... Thx to much. EDIT: Oh and, i have another question... how to block the sound for only certains players...? I dont want the complete code, i want the method. |
Re: How to block a sound
Well, his code stops the entity from being able to play the sound by removing the sound from its data.
|
| All times are GMT -4. The time now is 15:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.