First of all, you need LAN server to be installed (our version could be downloaded
here).
Simple case
We will take
Unique-KZ Advertisement as example. It will allow you to show in HUD info stored in a special file.
Download and open archive.
The creator of the plugin
kielor has placed every file in the same way as they should lay in
cstrike folder of your CS. So you just need to unpack all files into your
cstrike, which could be found in steam directory:
If asked about replacing files, choose "Copy and replace". Then open
plugins.ini file, placed in
...\cstrike\addons\amxmodx\configs, and add in a new line
uq_advert.amxx
Save (
Ctrl+S) and close the file. If your game is running, write
restart in console. That's it! Now you can write
/uqteam in chat and everything you typed in file
...\cstrike\addons\amxmodx\configs\uqmsg.txt will be printed in HUD.
Complicated case
Now suppose you've downloaded plugin from a famous forum
alliedmods, so you have only config file
uqmsg.txt and plugin's source code
uq_advert.sma. Firstly look at directories tree we are going to work with:
scripting folder is intended to contain plugins source code,
plugins folder is for plugins themself, in
configs one usually keeps plugin config (settings), and
data folder has files where plugin saves some info or auxiliary data. On alliedmods forum plugin author must specify folder for config and any subsidiary files.
Here's action plan:
- Open folder: ...\cstrike\addons\amxmodx\scripting
- Copy file uq_advert.sma into this folder
- Drag file onto compile.exe. You will see console with details about compilation process
- If compilation had no errors, you will find plugin file uq_advert.amxx in compiled folder in the same scripting directory
- Copy (or move) uq_advert.amxx into ...\cstrike\addons\amxmodx\plugins
- Open file plugins.ini, placed in ...\cstrike\addons\amxmodx\configs, and write
uq_advert.amxx
in a new line. Save file (Ctrl+S). Actually you can write it in any line, but sometimes there are specific requirements, so read plugin description carefully
- There could be some additional files along with a source file. In our case it's uqmsg.txt, which stores info for HUD. Copy it into ...\cstrike\addons\amxmodx\configs
- If CS is running, restart your server (write restart in console)