Page 1 of 1

Remove Notify Flag from sv_cheats

Posted: Mon Sep 03, 2012 10:38 pm
by Kami
Hey guys I want to remove the notify flag from sv_cheats but no matter what I try I just cannot get it to work.
Could anyone help me out?

Kami

Posted: Mon Sep 03, 2012 11:34 pm
by your-name-here
You should be able to use the ICvar interface and the ConVar class to do what you want:

Syntax: Select all

# Imports
from Source import Cvar

# In globals
CvarEngine = Cvar.GetCvar()

# ... later in your code
sv_cheats = CvarEngine.FindVar("sv_cheats")
sv_cheats.RemoveFlags(Cvar.FCVAR_NOTIFY)


That should work. Let me know if you have further issues.

Posted: Mon Sep 03, 2012 11:48 pm
by Kami
Works perfect thank you very much.