Setting up your plugin.ini file

The plugin.ini file is a new addition to the Admin Mod 2.50.x series

 

This lets a server use multiple scripts at the same time.  The default installation provides a number of scripts, but has both mod-specific plugins disabled.  This means that you must go into the plugin.ini file and enable the Counter-Strike or Team Fortress Classic specific plug-ins.  

 

The default plugin.ini file looks like this when newly-installed:

 

addons/adminmod/scripts/plugin_antiflood.amx

addons/adminmod/scripts/plugin_base.amx

addons/adminmod/scripts/plugin_chat.amx

addons/adminmod/scripts/plugin_cheat.amx

# addons/adminmod/scripts/plugin_CS.amx

# addons/adminmod/scripts/plugin_TFC.amx

addons/adminmod/scripts/plugin_hldsld_mapvote.amx

addons/adminmod/scripts/plugin_message.amx

addons/adminmod/scripts/plugin_retribution.amx

addons/adminmod/scripts/plugin_fun.amx

# addons/adminmod/scripts/plugin_spawn.amx

 

In the stock/default plugin.ini file hown above, note that there are two lines that are commented out by semi-colons (";") or hash characters ("#").  They are:

 

#addons/adminmod/scripts/plugin_CS.amx

#addons/adminmod/scripts/plugin_TFC.amx

 

If you play TFC, you should remove the hash in front of the second line.  You will therefore have this:

 

#addons/adminmod/scripts/plugin_CS.amx

addons/adminmod/scripts/plugin_TFC.amx

 

If you play CS, remove the hash in front of the first line that has one.  You will have:

 

addons/adminmod/scripts/plugin_CS.amx

#addons/adminmod/scripts/plugin_TFC.amx

 

Obviously, there are lines in the file other than the two shown above.

 

The default installation uses plugin script files, and retrieves the list of files to use from the plugin.ini file.  If you decide to do things differently and use only one script, you can disable the plugins by setting the admin_plugin_file cvar to 0 in your adminmod.cfg.  The script_file location must then be specified by the script_file cvar. Unless one of these cvars is defined, Admin Mod will not allow the server to start. If both cvars (admin_plugin_file and script_file) are defined in the adminmod.cfg file, the plugin format will be used and the script_file setting will be ignored.

 

Comments in the plugin.ini file can be preceeded with either a semicolon character(;) or a hash character (#). On this page only hashes are used but exchanging them for semicolons will have exactly the same effects.

 

 

See also: Admin Mod Configuration Variables (CVARs), Downloading and Installing Additional Plugins and Compiling Admin Mod Scripts 101 elsewhere in this documentation.