Installing Custom Start Weapons 1.1.0 on Metamod-P 1.21 and AMX Mod X 1.8.3

Installing a AMX Mod X plugin is very easy. In this example we are going to install a plugin called Custom Start Weapons.
What this plugin does is give a player specific weapons (defined in a config file) when joining the server. So instead of 
running around with a Glock 18 or USP 90 against players fully equiped you now can instantly join the action with appropriate 
weapons at your disposal.

The plugin can be downloaded from the AlliedModders forum:

AlliedModders

Download the Source file and compile it with AMX Mod X 1.8.3. Using an older or other version than 1.8.3 will result in an 
error and the file won't compile.

If you don't have a clue how to compile a source file with AMX Mod X then I suggest you use my pre-compiled binary which 
you can download here:

custom-start-weapons.amxx

So either you have compiled the file yourself or downloaded mine we're good to go now.

If the Counter-Strike process is running then first kill it. When the Counter-Strike process isn't running then proceed to step 5.

1.  SSH to the server
2.  screen -r
3.  quit
4.  CTRL + c

5.  cd ~/cs16/cstrike/addons/amxmodx/plugins/
6.  wget https://zeus.geforce.nl/~mb/files/games/custom-start-weapons.amxx
7.  chmod 600 custom-start-weapons.amxx
8.  cd ../configs/
9.  vi plugins.ini
10. at the bottom under '; Custom - Add 3rd party plugins here' add the plugin:

	custom-start-weapons.amxx

11. wget https://zeus.geforce.nl/~mb/files/games/csw.ini
12. chmod 700 csw.ini
13. vi csw.ini

In the csw.ini you specify for which maps you want the custom start weapons to be active and which weapons to which teams are handed.

As you can see mine is pretty straight forward, for all maps I give the same specific weapons for each side.

// Map Configs Must Be Defined First
//cs_assault ct "deagle 35;m4a1 90;awp 30;scout 20;hegrenade 2;"
//cs_assault tr "deagle 35;ak47 90;smokegrenade 2;"
//
// Define Default Weapons After All Map Configs.
//
// default ct "usp 90;"
// default tr "glock18 90;"
default ct "deagle 35;m4a1 90;hegrenade 1;flashbang 2;smokegrenade 1;"
default tr "deagle 35;ak47 90;hegrenade 1;flashbang 2;smokegrenade 1;"

So CT gets a Deagle with 35 ammo, an M4A1 with 90 ammo, 1 HE grenade, 2 flashbangs and 1 smokegrenade. T gets a Deagle with 35 ammo, 
an AK47 with 90 ammo, 1 HE grenade, 2 flashbangs and 1 smokegrenade. You can even bypass the standard maximum and give 4 HE grenades 
to a team.

You can also give a M4A1 and an AWP to the same team, the posibilities are endless. Stick to the line layout though.

A complete list of all official weapon names which can be used can be seen here

14. cd ~/cs16/
15. ./hlds_run -game cstrike +ip 127.0.1.1 +port 27015 -pingboost 1 +sys_ticrate 1000 +fps_max 1000 +fps_modem 1000 +map de_dust2 +maxplayers 16

        - You can leave out '+ip 127.0.1.1 +port 27015' when using default or change them to your needs

16. After a few seconds and some stuff in your console you should see the following:

        Connection to Steam servers successful.
        VAC secure mode is activated.

17. The server is running, you can check this bij typing 'status', you should see the following:

        hostname:  My Counter-Strike 1.6 Server (or whatever you named it in server.cfg)
        version :  48/1.1.2.7/Stdio 8684 secure  (10)
        tcp/ip  :  127.0.1.1:27015
        map     :  de_dust2 at: 0 x, 0 y, 0 z
        players :  0 active (16 max)

        #      name userid uniqueid frag time ping loss adr
        0 users

18. CTRL a + d (detached)
19. You now have a fully functional Counter-Strike 1.6 server with Metamod-P, AMX Mod X and CSW plugin. Frag on!