i've modified it to have an optional search feature, and not only search by name, but also cvar/command and flags
sm_cclist [search] [AND contains] [AND contains] [...]
cheat cvars
sm_cclist ",14.1" "]cvar"
cheat commands
sm_cclist "]command" ",14.1"
all commands/cvar that start with "mp_"
sm_cclist "[mp_"
(1<<14)
has cheat flag: ",14.1", does not have cheat flag: ",14.0"
see sourcemod/scripting/include/console.inc for more
Code:
//define FCVAR_PROTECTED (1<<5) /**< It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value. */
//define FCVAR_NOTIFY (1<<8) /**< Notifies players when changed. */
//define FCVAR_USERINFO (1<<9) /**< Changes the client's info string. */
//define FCVAR_REPLICATED (1<<13) /**< Server setting enforced on clients. */
//define FCVAR_CHEAT (1<<14) /**< Only useable in singleplayer / debug / multiplayer & sv_cheats */
//define FCVAR_DEMO (1<<16) /**< Record this cvar when starting a demo file. */
//define FCVAR_DONTRECORD (1<<17) /**< Don't record these command in demo files. */
//define FCVAR_PLUGIN (1<<18) /**< Defined by a 3rd party plugin. */
//define FCVAR_NOT_CONNECTED (1<<22) /**< Cvar cannot be changed by a client that is connected to a server. */