Raised This Month: $51 Target: $400
 12% 

How To Override server cvar max value?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kaishi
Junior Member
Join Date: Nov 2007
Old 12-17-2007 , 23:46   How To Override server cvar max value?
Reply With Quote #1

So, I want to set mp_bonusroundtime to "30", but the max is 15. Is there anyway to do this with SourcePawn? I tried sm_cvar with no luck.

Info on cvar:
"mp_bonusroundtime" = "15.000000" ( def. "15" ) min. 5.000000 max. 15.000000
game replicated
- Time after round win until round restarts
Kaishi is offline
Kaishi
Junior Member
Join Date: Nov 2007
Old 12-17-2007 , 23:57   Re: How To Override server cvar max value?
Reply With Quote #2

Durr, n/m i'm blind.

SetConVarBounds
Syntax:
native SetConVarBounds(Handle:convar, ConVarBounds:type, bool:set, Float:value=0.0);


Usage:
convar Handle to the convar. type Type of bound to set, ConVarBound_Lower or ConVarBound_Upper set If set to true, convar will use specified bound. If false, bound will be removed. value Floating point value to use as the specified bound.
Kaishi is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 12-18-2007 , 07:51   Re: How To Override server cvar max value?
Reply With Quote #3

Kaishi, great job helping Kaishi ;) ;) ;)
__________________
I'm a blast from the past!
ferret is offline
Reply



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 08:46.


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