Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Check CVAR


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-20-2017 , 05:43   [ H3LP ] Check CVAR
Reply With Quote #1

Hey. Is there a way to execute something on cvar change without using a task that always checks the value? So, for example, when I set the max_checkpoint cvar to 0, if it was 1, I want to play a sound and same if it was 0 and I set it to 1, but not if the new value equals the old value, like if it was 1 and now ti is 1 as well. I know how to do it using a global var and cvar value check on a task, but I wouldn't want to use a task that repeats every second just for that. So, any way to do it using the default inc files? Thanks !

Last edited by DarthMan; 06-20-2017 at 09:11. Reason: Solved
DarthMan is offline
 


Thread Tools
Display Modes

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 22:50.


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