Raised This Month: $ Target: $400
 0% 

execute function on changed cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-31-2006 , 12:52   Re: execute function on changed cvar
Reply With Quote #7

could you do this?
Code:
register_cvar("test_cvar", "1")   public client_PreThink(id) {     if(get_cvar_num("test_cvar") != 1) {         log_amx("CVAR HAS CHANGED")     }     else {         log_amx("CVAR HASN'T CHANGED")     } }
just using pre_think as an example so it is continuously checked but this may not be what he means...
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 04:51.


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