When you define the CVAR, there is an overload that takes minimum and
maximum values. For example:
ConVar example("example", "0", 0, "Example CVAR.", true, 0, true 10);

The example CVAR will be limited to 0-10.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tan Theodore
Sent: Wednesday, July 16, 2008 9:11 AM
To: [email protected]
Subject: [hlcoders] Setting restriction for CVARS


Is there a wayto set a restriction for CVARS?
 
For example if the user inputs 950000000000 for cl_maxcash, how can set
restrictions that it doesn't go beyond 95000?
_________________________________________________________________
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to