Quote:
Originally Posted by bebe9b
|
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_RoundSounds, EventHookMode_Pre);
HookEvent("round_end", Event_RoundSounds, EventHookMode_Pre);
}
public Action Event_RoundSounds(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
hEvent.BroadcastDisabled = true;
return Plugin_Changed;
}
Otherwise to stop a sound, use the sdktools function "
StopSound"
__________________