grandwazir |
02-02-2009 16:25 |
Re: StripAndChangeServerConVarBool?
Quote:
quick question, can you get around sv_cheats to set convars? I tried the following but it doesn't work.
|
Yeah you can and it is exactly what my function in All4Dead does. Step by step what it does is: - Gets the current command flags required to run the specified command and save them.
- Sets the command flags so they are exactly the same only do not require FCVAR_CHEAT anymore.
- Change whatever you need to do.
- Set the command flags back to what they were before.
It is basically the same as what is on the wiki here although the example there uses GetConVarFlags and SetConVarFlags instead of GetCommandFlags and SetCommandFlags.
Where is your command falling down? You can check your sourcemod logs to find out what bit it is getting stuck on.
|