View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 04-06-2012 , 07:26   [Any] Enable / Disable Plugins
Reply With Quote #1

[Any] Plugin Enable/Disable
Version 1.0.1


Description:
Move plugins to and from the disabled folder by command.

Why?
I use this for my plugin development to quickly disable plugins without having to use FTP. This is for cases when I want to unload a plugin and make sure it won't load itself again after a restart.

The other use I have for this is to unload and disable training plugins on my scrim server before a match starts.

In short; this is just more convenient then FTPing into the server.

Commands:
  • plugins enable <filename>
    • Moves the specified plugin file out of the /disabled/ folder, and loads it.
  • plugins disable <filename>
    • Unloads the specified plugin file, and moves it to the /disabled/ folder.

Cvars:
  • sm_dis_enable_version
    • Plugin Version

Install Instructions:

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

Note:
By default anyone with the "root" admin flag can use this plugin's commands.
Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • Fixed a typo
    • Plugin file path/name will now be displayed if a move operation fails.
Total downloads as prior to last edit: 564
Attached Files
File Type: sp Get Plugin or Get Source (EnableDisable.sp - 7660 views - 4.7 KB)
__________________

Last edited by DarthNinja; 08-14-2014 at 23:41.
DarthNinja is offline