Raised This Month: $ Target: $400
 0% 

Setting Cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-21-2009 , 19:52   Re: Setting Cvars
Reply With Quote #4

Just be sure to use the correct type:

PHP Code:
//register cvars, setting cvar pointers to variables for use later
new g_pInterval register_cvar"BCM_timelockrtt" "1.5" );
new 
g_pType register_cvar"BCM_automaticloading" "1" );

//access timelockrtt value (float\decimal)
get_pcvar_floatg_pInterval );

//access automaticloading value (integer)
get_pcvar_numg_pType );

//Likewise, use the respective set_pcvar_* to change the value
set_pcvar_floatg_pInterval 1.5 );
set_pcvar_numg_pType ); 
__________________

Last edited by Bugsy; 08-21-2009 at 19:56.
Bugsy 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 15:15.


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