AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] sm_cvarlist (v1.1) (https://forums.alliedmods.net/showthread.php?t=135506)

step 08-16-2010 22:04

[ANY] sm_cvarlist (v1.1)
 
1 Attachment(s)
sm_cvarlist


Description

This plugin lists any cvars/cmds using the cvarlist command formatting.


Commands
  • sm_cvarlist <search strings> [/listed] or [/unlisted] [/defaults] [/file]

Usage examples
  • sm_cvarlist - Lists all cvars/cmds.
  • sm_cvarlist /listed - Lists all visible cvars/cmds.
  • sm_cvarlist /unlisted - Lists all hidden cvars/cmds.
  • sm_cvarlist /defaults - Lists all cvars/cmds with their default values.
  • sm_cvarlist /file - Saves the list to a txt file.
  • sm_cvarlist "cheat" - Lists all cvars/cmds that have the "cheat" flag.
  • sm_cvarlist bot player - Lists anything that contains "bot" or "player" either in the name, value, flag, or description.

Thanks
  • thekod and Seather, for coding the original plugins;
  • Everyone who helped me in the topics I created in the Scripting section;
  • ProdigySim for some tips.

Changelog

19th October 2012 - v1.1
  • Added /defaults option.
17th August 2010 - v1.0
  • Initial release.

DarthNinja 08-17-2010 00:48

Re: [ANY] sm_cvarlist (v1.0)
 
This looks handy

gtamike 08-17-2010 11:40

Re: [ANY] sm_cvarlist (v1.0)
 
Yes looks to be useful

step 08-17-2010 12:36

Re: [ANY] sm_cvarlist (v1.0)
 
I forgot to uncomment one line in the GenerateFilePath function, replacing the .sp file.

Xp3r7 08-17-2010 20:33

Re: [ANY] sm_cvarlist (v1.0)
 
Will this do all cvars or just the ones created by sourcemod and its plugins?

step 08-17-2010 22:02

Re: [ANY] sm_cvarlist (v1.0)
 
Quote:

Originally Posted by Xp3r7 (Post 1274031)
Will this do all cvars or just the ones created by sourcemod and its plugins?

It will list all cvars/cmds, even hidden ones.

Groger 09-13-2010 09:01

Re: [ANY] sm_cvarlist (v1.0)
 
PHP Code:

L 09/13/2010 14:40:55: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
L 09/13/2010 14:40:55: [SMDisplaying call stack trace for plugin "sm_cvarlist.smx":
L 09/13/2010 14:40:55: [SM]   [0]  Line 143, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::GetCvars()
L 09/13/2010 14:40:55: [SM]   [1]  Line 92, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::Command_Cvarlist() 

whene I typ sm_cvarlist in my console
Can all of my admins to this? so is this based on a certain flag?

step 09-13-2010 10:02

Re: [ANY] sm_cvarlist (v1.0)
 
Quote:

Originally Posted by Groger (Post 1298262)
PHP Code:

L 09/13/2010 14:40:55: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
L 09/13/2010 14:40:55: [SMDisplaying call stack trace for plugin "sm_cvarlist.smx":
L 09/13/2010 14:40:55: [SM]   [0]  Line 143, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::GetCvars()
L 09/13/2010 14:40:55: [SM]   [1]  Line 92, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::Command_Cvarlist() 

whene I typ sm_cvarlist in my console
Can all of my admins to this? so is this based on a certain flag?

It's based on the ADMFLAG_RCON, since you can see the rcon_password value with this command.

About the error, I have no idea why it's happening, I've got to check it out.

step 09-13-2010 10:12

Re: [ANY] sm_cvarlist (v1.0)
 
It's fixed now, I was trying to close an handle that is not created when you use sm_cvarlist without arguments.

Groger 09-13-2010 11:44

Re: [ANY] sm_cvarlist (v1.0)
 
It works now, alltought I dont see why I could use this. But still, nice work!


All times are GMT -4. The time now is 13:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.