I'm not sure whether you are trying to do this with a server plugin or a
mod but you could use
cvar->FindVar("sv_voiceenable")
to get the cvar. Not sure if you would have to include some more
files/classes when working with a plugin though and it would also just
give you access to the server-side value if I'm not mistaken.
But then again isn't sv_voiceenable just a server-side-only cvar anyway? :P
- Ben K.
Janek Le_Vert wrote:
Hi all,
I would like to know (server side and client side) value of
sv_voiceenable.
My first try was to decalre a extern ConVar sv_voiceenable and send its
value in a message to clients but compiler was not able to link
sv_voiceenable as sv_voiceenable is not part of the dll.
Second try was to see if I can get this information client side using
CVoiceStatus* GetClientVoiceMgr(); but I don't find usefull method in
here.
Then I had a look at CVoiceGameMgr* GetVoiceGameMgr(); but didn't find
what
I was expecting server side.
Do you know how I can grab value of sv_voiceenable ?
Thank you in advance for your help.
_________________________________________________________________
Windows Live Messenger sur i-mode⢠: dialoguez avec vos amis depuis votre
mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders