Raised This Month: $ Target: $400
 0% 

How to block a sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-27-2009 , 17:06   Re: How to block a sound
Reply With Quote #1

This should work. Didn't test it though...

PHP Code:
public plugin_precache()
    
register_forward(FM_KeyValue"fwd_KeyValue");

public 
fwd_KeyValue(const iEnt, const hKvd)
{
    if(
pev_valid(iEnt))
    {
        new 
szValue[48];
        
get_kvd(hKvdKV_ValueszValuesizeof(szValue)-1);
        if(
equal(szValue"ravesound.wav"))
            return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;

hlstriker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:08.


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