View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-03-2011 , 07:35   [Any] Command Dumper with Flag List
Reply With Quote #1

[Any] Command Dumper
TF2 Version 1.1.0



Description:
This plugin will create a file (plaintext or .csv) with all SM-created commands, along with their descriptions and required admin flags.
For more info, see Notes.

Commands:
  • sm_dumpcommands
    • Dumps all commands to a file.

Cvars:
  • sm_commanddump_version
    • Plugin Version
  • sm_commanddump_use_csv
    • 0 = The plugin will output to a .txt file (default).
    • 1 = The plugin will output to a .csv file. Useful for importing into excel/google docs/etc so you can sort commands by flag, etc.

Install Instructions:

  1. Place CommandDump.smx into your addons/sourcemod/plugins/ folder.

Notes:
  • The plugin will tell you the location of the output file when you run the command.
  • The plugin is only able to detect adminflags that are registered when the command is registered.
    Plugins that use CheckCommandAccess or equivalent in the callback will be reported as "No flag registered".
  • The plugin will report flags as they appear on the server. A slay command that is overridden to ban will be detected as "ADMFLAG_BAN".

Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • No longer loads common.phrases as doing so is not required.
  • V1.1.0
    • Now handles commands that use multiply flags properly.

Total downloads as prior to last edit: 43




Attached Files
File Type: sp Get Plugin or Get Source (CommandDump.sp - 2464 views - 4.3 KB)
__________________

Last edited by DarthNinja; 08-16-2011 at 19:37.
DarthNinja is offline