Raised This Month: $ Target: $400
 0% 

Help CSGO Stopping Music Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadowdragon
Senior Member
Join Date: Dec 2012
Old 11-16-2014 , 22:34   Help CSGO Stopping Music Sound
Reply With Quote #1

Hello all alliedmodders i am making a plugin that has ambient music playing in the background which works fine the problem is that very loud default music that automatically plays at the start of a round i would like this to stop so players can listen to the ambient sound without having the csgo music playing i have tryed this command(ClientCommand(client, "snd_musicvolume 0");) when a player spawns but then the server throughs at an error(FCVAR_SERVER_CAN_EXECUTE prevented server running command: snd_musicvolume
)

Can someone please tell me what i need to include into my script to disable the music

~Thanks

--------------------------------------------------
Sorry for my poor english
__________________
Sorry for my poor English!
________________________________
I can do CSS/CSGO plugin request for little money!
shadowdragon is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 11-17-2014 , 01:49   Re: Help CSGO Stopping Music Sound
Reply With Quote #2

https://sm.alliedmods.net/api/index....d=show&id=678&

I dont know if this work or not
__________________
I am learning sm now
rsdtt is offline
shadowdragon
Senior Member
Join Date: Dec 2012
Old 11-17-2014 , 02:44   Re: Help CSGO Stopping Music Sound
Reply With Quote #3

No that does not work iv already tryed that it. it seems that it only applys to custom sounds added by the plugin.
__________________
Sorry for my poor English!
________________________________
I can do CSS/CSGO plugin request for little money!
shadowdragon is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 11-17-2014 , 07:20   Re: Help CSGO Stopping Music Sound
Reply With Quote #4

There's a plugin where you can type !stopmusic to stop the map music. You could possibly edit the code so that instead of typing !stopmusic it automatically stops it for everyone at the beginning of the round?
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-17-2014 , 08:30   Re: Help CSGO Stopping Music Sound
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?t=227735
Bacardi 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 05:17.


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