Raised This Month: $51 Target: $400
 12% 

Terrori knife mute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zyten
Senior Member
Join Date: Jan 2018
Old 05-29-2018 , 21:27   Terrori knife mute
Reply With Quote #1

As topic suggest. Plugin to block sounds of terrorist knifes when they knife each other and no damage done on progress for csgo
Zyten is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 05-30-2018 , 03:37   Re: Terrori knife mute
Reply With Quote #2

I'd say hook the sound and block it from there

PHP Code:
public void OnPluginStart()
{
    
AddNormalSoundHook(SoundHook);
}

public 
Action SoundHook(int clients[64], int &numClientschar sample[PLATFORM_MAX_PATH], int &entityint &channelfloat &volumeint &levelint &pitchint &flags)
{
    
PrintToChatAll("Sound path: %s"sample); // To see the sounds you want to block

    
if (StrEqual(sample"")) // The sound you want to block
        
return Plugin_Handled;
    return 
Plugin_Continue;

__________________
LenHard is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 05-30-2018 , 07:55   Re: Terrori knife mute
Reply With Quote #3

i am not coder so i didnt get it also i got error for compile

error 017: undefined symbol "AddNormalSoundHook"

Last edited by Zyten; 05-30-2018 at 07:55.
Zyten is offline
KlausLaw
AlliedModders Donor
Join Date: Feb 2018
Location: Israel
Old 05-30-2018 , 12:27   Re: Terrori knife mute
Reply With Quote #4

Quote:
Originally Posted by Zyten View Post
i am not coder so i didnt get it also i got error for compile

error 017: undefined symbol "AddNormalSoundHook"
#include <sdktools>
__________________
Taking private requests

KlausLaw is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 05-30-2018 , 13:35   Re: Terrori knife mute
Reply With Quote #5

@LenHard I'm thinking that's a client sided sound so that will not work.
__________________
Rohanlogs is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-30-2018 , 14:07   Re: Terrori knife mute
Reply With Quote #6

Quote:
Originally Posted by Rohanlogs View Post
@LenHard I'm thinking that's a client sided sound so that will not work.
The only client sided sound is the sound the client makes, however you can mute the sounds other clients make with their knives
Mitchell 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 10:07.


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