How to detect MP3Volume change from console and settings ?
Hello guys,
I was wondering how could I get notified when user changes his MP3Volume setting ? I created a music plugin which allows player to increase volume in a menu. I use query_client_cvar( ) on client_putinserver( ) but if player changes the sound not in the created menu but in console or settings the volume variable doesn't refresh. client_infochange didn't work so I thought maybe there's another way of hooking this ? Thanks. |
Re: How to detect MP3Volume change from console and settings ?
I believe there isn't a way to do that.
|
Re: How to detect MP3Volume change from console and settings ?
Setting task every 5s to query_client_cvar( ) would not be the smartest idea ? :D
|
Re: How to detect MP3Volume change from console and settings ?
I mean you can do that, but I don't really see a reason would you. Just let them change it through console or options menu.
|
Re: How to detect MP3Volume change from console and settings ?
Well the plugin displays players current volume if it was changed not from the menu but from console or options it doesn't refresh.
|
Re: How to detect MP3Volume change from console and settings ?
Quote:
Simply query the cvar when you need it. |
| All times are GMT -4. The time now is 04:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.