Raised This Month: $ Target: $400
 0% 

(Cvar Utilities) Hooking cvar question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 04-12-2011 , 17:19   (Cvar Utilities) Hooking cvar question
Reply With Quote #1

Ok, I've tried these ways:

PHP Code:
new advanced_menu_chicken_sound

in init
:

advanced_menu_chicken_sound register_cvar("advanced_menu_chicken_sound""1")
CvarHookChange(advanced_menu_chicken_sound register_cvar("advanced_menu_chicken_sound""1"), "OnCvarChange"
And I am checking this with
PHP Code:
get_pcvar_num 
. Is this a good way at all? I also tried todo this:

PHP Code:
in init:

new 
advanced_menu_chicken_sound_register CvarRegister("advanced_menu_chicken_sound""1""Enable/Disable Chicken sound"
This didn't work.
bibu is offline
 



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 19:49.


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