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

How to stop valve sound?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 05-23-2018 , 11:17   How to stop valve sound?
Reply With Quote #1

Salut,
How to stop valve sound start maps/round and end maps ?

Pls see video:

https://www.youtube.com/watch?time_c...&v=lExxK_ZljJY

Thx for help,
__________________
respecta si vei fi respectat

Last edited by bebe9b; 05-23-2018 at 16:15.
bebe9b is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 05-24-2018 , 22:23   Re: How to stop valve sound?
Reply With Quote #2

Quote:
Originally Posted by bebe9b View Post
Salut,
How to stop valve sound start maps/round and end maps ?

Pls see video:

https://www.youtube.com/watch?time_c...&v=lExxK_ZljJY

Thx for help,
I believe for the music, it's client sided.

PHP Code:
ClientCommand(client"playgamesound Music.StopAllMusic"); 
For round sounds (Untested)

PHP Code:
public void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundSoundsEventHookMode_Pre);
    
HookEvent("round_end"Event_RoundSoundsEventHookMode_Pre);
}

public 
Action Event_RoundSounds(Event hEvent, const char[] sEventNamebool bDontBroadcast)
{    
    
hEvent.BroadcastDisabled true;
    return 
Plugin_Changed;

Otherwise to stop a sound, use the sdktools function "StopSound"
__________________

Last edited by LenHard; 05-24-2018 at 22:30.
LenHard is offline
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 05-25-2018 , 02:49   Re: How to stop valve sound?
Reply With Quote #3

Salut,
You can creat plugin ?
Thx,
__________________
respecta si vei fi respectat
bebe9b 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 23:08.


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