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')