AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sounds Overall (https://forums.alliedmods.net/showthread.php?t=163569)

GXLZPGX 07-31-2011 18:07

Sounds Overall
 
I've achieved it somehow before, but I've had to reformat my computer recently due to the infection of gay porn in my C drive. Who is nice enough to help me out?

I need to block the use key sound.

bibu 07-31-2011 18:30

Re: Sounds Overall
 
This should do it:

PHP Code:

#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_forwardFM_EmitSound"FwdEmitSound" );
}

public 
FwdEmitSoundiEntityiChannelszSound[ ], Float:fVolumeFloat:fAttniFlagsiPitch )
{
    if( 
is_user_aliveiEntity ) && equalszSound"common/wpn_denyselect.wav" ) )
    {
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;



GXLZPGX 07-31-2011 18:31

Re: Sounds Overall
 
Quote:

Originally Posted by bibu (Post 1522948)
This should do it:

PHP Code:

#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_forwardFM_EmitSound"FwdEmitSound" );
}

public 
FwdEmitSoundiEntityiChannelszSound[ ], Float:fVolumeFloat:fAttniFlagsiPitch )
{
    if( 
is_user_aliveiEntity ) && equalszSound"common/wpn_denyselect.wav" ) )
    {
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;



I'm going to have to kiss you if that's right. That looks very familiar.


All times are GMT -4. The time now is 03:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.