Raised This Month: $ Target: $400
 0% 

Restrict convar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 11-15-2010 , 10:00   Restrict convar
Reply With Quote #1

Hey guys,

I'd like to know whether it's possible to restrict a value of a convar without any server addon. For example, restrict the fps_max to 500 when the server starts.

Thanks in advance
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-15-2010 , 10:19   Re: Restrict convar
Reply With Quote #2

Try this: http://forums.srcds.com/viewtopic/14645
__________________
thetwistedpanda is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 11-15-2010 , 10:21   Re: Restrict convar
Reply With Quote #3

seems its not possible to completely restrict a convar, thanks
Zephyrus is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-15-2010 , 11:32   Re: Restrict convar
Reply With Quote #4

You could try hooking the convar with a simple SM plugin and everytime it changes, set it back to default. It should work for fps_max
__________________
thetwistedpanda is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 11-15-2010 , 13:37   Re: Restrict convar
Reply With Quote #5

The easiest way you can restrict a replicated or server side cvar is to set the cvars cheat flag. This way the cvar cannot be changed, even by the server.
__________________
tigerox 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 17:02.


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