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
Remove Notify Flag from sv_cheats
-
- Developer
- Posts: 168
- Joined: Sat Jul 07, 2012 1:58 am
You should be able to use the ICvar interface and the ConVar class to do what you want:
That should work. Let me know if you have further issues.
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.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 75 guests