Raised This Month: $ Target: $400
 0% 

CSS require sv_cheats to be on?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 04-05-2015 , 11:10   CSS require sv_cheats to be on?
Reply With Quote #1

The mod I'm making is a huge one, and I just found out that without the 'sv_cheats' the mod really won't even work properly!
Any ideas how I have to handle this?
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216
D.Moder is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-05-2015 , 11:16   Re: CSS require sv_cheats to be on?
Reply With Quote #2

if you need to change cvars you can use sm_cvar "convar" "value" without the need to have sv_cheats turned on
xerox8521 is offline
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 04-05-2015 , 23:44   Re: CSS require sv_cheats to be on?
Reply With Quote #3

I saw recommend to turn off sv_cheats for some security reasons...
__________________
Learning SourceMod is happy

Last edited by DSASDFGH; 04-05-2015 at 23:44.
DSASDFGH is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 04-06-2015 , 00:05   Re: CSS require sv_cheats to be on?
Reply With Quote #4

Could you explain what part requires sv_cheats ?

You can try to sv_cheats 0 after having removed the FCVAR_CHEAT flag from a convar whose value you want to change (and don't forget to add back again that flag after having changed the convar value), if the problem comes from a convar. It doesn't work with all of them though (i.e. timescale I think ?).

Alternatively I've seen some plugin temporarily set sv_cheats 1; though that isn't really pretty and not recommended. Some say it isn't safe though I have yet to see an exploit using that; I doubt it is unsafe when done in the same code flow (i.e. before returning from your function you ensure that sv_cheats is back at 0). If someone could enlight me on that <.<.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword 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