# Downloading and Installing Additional Plugins

Having trouble integrating those %@#&$^! plugins?

Yes, we know, plugins were supposed to resolve all the problems for those who were not hard core programmers. so here is a step-by-step plugin for dummies tutorial:

> These instructions are geared toward a Windows user compiling the plugins. If you are using Linux, please note that the procedure is similar, but where we refer to Windows batch file, you will need to use the equivalent Unix shell script.

There are really only two ways to download a plugin:

- from the plugin page of the Admin Mod web site

- from the Admin Mod forums

In either case, the task is simple to perform:

- From the plugin page, right-click (for Windows) on the Download link, and choose "Save Target As."

- Go to the ..\Admin\scripting\myscripts folder. (It is a folder that you extracted when you extracted Admin Mod from the zip file.)

- Change the "Save as type" from "Text Document" to "All files". Press save and watch the file download.

If you download the script from the forum, the file will either be in the zip format, or in a plain text format.

- If the first case presents itself, unzip the CONTENTS of the file into the ..\Admin\scripting\myscripts folder.

- Otherwise, right click on the link, and do as mentioned above.

So, you now have the plugin you wish to implement on your server in the scripting\myscripts folder. Go to that folder and double click on the compile_all.bat file. (Only files that start with "plugin_" and end in a .sma entension will be compiled automatically.)

Your scripts will be "translated," or "compiled" into a file that the program can understand. These compiled files will be placed in the ..\Admin\scripting\mybinaries folder automatically by the compile_all program. You will notice that the extensions of your compiled scripts will be different. They no longer end with ".sma" but with ".amx" instead. That is how you know it is a compiled plugin.

- Copy all the .amx files into the ..\half-life\<mod>\dlls folder (<mod> being your game folder).

The last step in integrating the files is adding their locations in the plugin.ini file. This file was created when you installed Admin Mod 2.5.

- Find the plugin.ini file in the mod directory (i.e. half-life\cstrike or half-life\tfc).

- Open this file in a text editor and add the location of the plugins you want to add.

At the end of the file, add an entry in this format:

dlls/plugin_nameofplugin.amx

For example, if I downloaded the plugin_coffee.sma file, the compiled file would be plugin_coffee.amx. To add that file to your plugin.ini, simply add this to the last line in the file:

dlls/plugin_coffee.amx

Now you can fire up your server, and try the new plugin. You must restart your server or change maps for new plugins to take effect.