View Single Post
madcap
Senior Member
Join Date: Feb 2009
Old 02-27-2009 , 15:52   Re: All the L4D Cvars and a logger
Reply With Quote #4

Nice, I was actually writing something that did exactly this.

It would be nice to add the flags to the output (at least the important ones like CHEAT).

Try:

Code:
flag="";
if(cmdflags&FCVAR_CHEAT){flag="cheat ";}
if(cmdflags&FCVAR_NOTIFY){StrCat(flag, sizeof(flag), "notify ");}
if(cmdflags&FCVAR_PLUGIN){StrCat(flag, sizeof(flag), "plugin ");} 
etc...
TrimString(flag);
(where 'cmdflags' is my variable, I think you call yours 'flags')

Last edited by madcap; 02-27-2009 at 15:54.
madcap is offline