Raised This Month: $32 Target: $400
 8% 

Auto Plugins Adder[ V 0.0.4 ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management       
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-07-2015 , 10:26   Auto Plugins Adder[ V 0.0.4 ]
Reply With Quote #1


Auto Plugins Adder
Release: 07.03.2015 | Last Update: 30.06.2016

Table of Contents

Description top

While I had some servers, I found quite annoying that after every plugin I was installing, I must add it manually in plugins.ini. But the biggest problem was that sometimes I forget to do it and was wondering why the plugin does not work.

This plugin, as it name says, is a plugin auto adder. At every server start/restart/map change it parse plugins folder and add everything in plugins.ini
I'm sure that you think now, "this won't work, it will keep adding same plugins that are already in a file" or "what if I have custom plugins configuration per map or per mod ?". Well:
  • It adds only the plugins that ARE NOT already in plugins.ini
  • Custom configuration are taken into accout:
    • Any plugin from addons/amxmodx/configs/plugins-mod*.ini is not added.
    • Any plugin from addons/amxmodx/configs/maps/plugins_map_name*.ini is not added.
    • Any plugin from addons/amxmodx/configs/maps/plugins_map_prefix*.ini is not added.
  • Any disabled plugin(no matter from what config file from above) won't be added again.

1.plugins_mod: mod can be any custom mod(like the one from Furiens by ConnorMcLeod)
2.plugins_map_name: can be any map name
3.plugins_map_prefix: can be any map prefix(de/cs/fy/as)

You don't have to do anything, just install and let it do all the work for you. Plugins are instantly loaded.
I'm open to suggestions, please post any ideea you have, I would be glad to add it, if it's fine.
Requirements top

Nothing, just:
  • AmxModX
  • A server without dproto.
    This is not generally needed, but I won't help you if you are running an outdated server with dproto. If you are experiencing problems, update your server/ fix the erros by yourself.
Installation top

To install the plugin:
  1. Download the resources from this post.
  2. Put AutoPluginsAdder.amxx in addons/amxmodx/plugins
  3. Open addons/amxmodx/configs/plugins.ini and add at the end of this file AutoPluginsAdder.amxx
  4. You can put AutoPluginsAdder.sma file into addons/amxmodx/sources but this is not mandatory.
  5. Restart the server/change map.
Cvars top

Cvars that you can configure:
  • load_from_custom_dir
    • Default Value: 0 -> use 1 to turn on
    • If you want to load plugins from a custom folder enable this cvar.
    • At the first time when it is turned on, it will create in addons/amxmodx/plugins a folder called autoloader. Place inside it any plugin that you want to get loaded.
    • Any plugin from addons/amxmodx/plugins won't get loaded.
  • load_plugins_with_prefix
    • Default Value: 0 -> 1 to turn on
    • Allow you to load only plugins that have a custom prefix.
  • requiered_prefix
    • Default Value: _prefix
    • If the above cvar is turned on it will load only plugins that have a custom prefix set from this one.
    • If you set it to zm_, then only plugins that starts with zm_will be loaded
ChangeLog top
  • V 0.0.4:
    • Fixed bugs
    • Code improved
Downloads top
  • V 0.0.3:115
Attached Files
File Type: sma Get Plugin or Get Source (AutoPluginsAdder.sma - 1538 views - 5.5 KB)
__________________

Last edited by HamletEagle; 06-30-2016 at 06:07.
HamletEagle is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39.


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