View Single Post
iDragon
Member
Join Date: Aug 2010
Old 04-17-2013 , 06:05   Re: [CSS] Stop flashlight sound
Reply With Quote #6

Quote:
Originally Posted by vodka00 View Post
Here is one for the sprayer, it's annoying too.

PHP Code:
    if (StrEqual(sample"player/sprayer.wav"false))
        return 
Plugin_Stop
but for some reason I can't get these to work, would these sounds be part of guns?


PHP Code:
    if (StrEqual(sample"weapons/ClipEmpty_Pistol.wav"false))
        return 
Plugin_Stop;
        
    if (
StrEqual(sample"weapons/ClipEmpty_Rifle.wav"false))
        return 
Plugin_Stop
For the other 2 hooks, you need to use AddAmbientSoundHook() .
__________________
Sorry for my bad english.
iDragon is offline