Raised This Month: $ Target: $400
 0% 

Block the sound in PrintHintText()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Old 06-24-2010 , 09:27   Re: Block the sound in PrintHintText()
Reply With Quote #2

PHP Code:
public OnPluginStart()
{
    
AddNormalSoundHook(NormalSHook:sound_hook);
}

public 
Action:sound_hook(clients[64], &numClientsString:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
    
//Use this to find the sound you want to block
    
PrintToChatAll("%s",sample);

    
//Block sound
    
if(StrEqual(sample,""))
        return 
Plugin_Stop;
    
    return 
Plugin_Continue;

__________________
FoxMulder is offline
 



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 21:35.


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