Raised This Month: $ Target: $400
 0% 

[CSS] is there any security risks with having sv_cheats on?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
necavi
Veteran Member
Join Date: Sep 2010
Old 04-14-2015 , 11:12   Re: [CSS] is there any security risks with having sv_cheats on?
Reply With Quote #1

You can strip the cheat flag from commands temporarily in order to run them with sv_cheats 0 if need be.
necavi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-14-2015 , 11:35   Re: [CSS] is there any security risks with having sv_cheats on?
Reply With Quote #2

Quote:
Originally Posted by necavi View Post
You can strip the cheat flag from commands temporarily in order to run them with sv_cheats 0 if need be.
Yes, and this is a pretty common thing to do.

I know Freak Fortress 2 does it with a few cvars.

Just make sure to change it back as soon as you've changed the cvar. This is regardless of when you're going to change the cvar value again. Otherwise, you may end up with a race condition between multiple plugins.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-14-2015 at 11:36.
Powerlord 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 06:04.


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