Installing Metamod, AMX Mod X, CSDM 2.1.3d and YAPB 4.3.734 on Counter-Strike 1.6

This can be run either on Metamod 1.20 with AMX Mod X 1.8.2 or on Metamod-P 1.21 with AMX Mod X 1.8.3. It is a matter of choice; both work fine.

Download the needed files from the original websites:

Metamod
AMX Mod X
YAPB
CSDM
Bunny Hop Abilities
Refill ammo on kill
MultiJump
Loadingsong

In this how-to I use direct download links to my own server, but I can imagine one does not want to use binaries from strangers on the net 😉

In that case I suggest you use this website to compile your source files:

AMX Mod X online compiler

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/
6.  mkdir -p cstrike/addons/metamod/dlls
7.  cd cstrike/addons/metamod/dlls
8.  wget https://zeus.geforce.nl/~mb/files/games/metamod-1.20-linux.tar.gz
9.  tar -zxvf metamod-1.20-linux.tar.gz
10. rm metamod-1.20-linux.tar.gz
11. cd ~/cs16/cstrike

12. vi liblist.gam
13. replace the lines:

	gamedll "dlls/mp.dll"
	gamedll_linux "dlls/cs.so"
	gamedll_osx "dlls/cs.dylib"

to:

	gamedll_linux "addons/metamod/dlls/metamod_i386.so"

14. cd sound/
15. wget https://zeus.geforce.nl/~mb/files/games/amxmodx_sounds_v2.zip
16. unzip amxmodx_sounds_v2.zip
17. chmod 775 misc/* djeyl/*
18. rm amxmodx_sounds_v2.zip
19. cd ../maps/

20. wget https://zeus.geforce.nl/~mb/files/games/res_files.zip
21. unzip res_files.zip
22. chmod 775 *.res
23. rm res_files.zip
24. cd ../cstrike/

25. wget https://zeus.geforce.nl/~mb/files/games/amxmodx-1.8.2-base-linux.tar.gz
26. tar -zxvf amxmodx-1.8.2-base-linux.tar.gz
27. rm amxmodx-1.8.2-base-linux.tar.gz

28. wget https://zeus.geforce.nl/~mb/files/games/amxmodx-1.8.2-cstrike-linux.tar.gz
29. tar -zxvf amxmodx-1.8.2-cstrike-linux.tar.gz
30. rm amxmodx-1.8.2-cstrike-linux.tar.gz

31. wget https://zeus.geforce.nl/~mb/files/games/yapb-4.3.734-linux.tar.xz
32. tar -xf yapb-4.3.734-linux.tar.xz
33. rm yapb-4.3.734-linux.tar.xz

34. cd addons
35. chmod 755 amxmodx/ metamod/ yapb/
36. cd metamod
37. vi plugins.ini
38. add the lines:
	
	linux addons/amxmodx/dlls/amxmodx_mm_i386.so
	linux addons/yapb/bin/yapb.so

39. cd ../yapb/conf/
40. mv yapb.cfg yapb.bak
41. wget https://zeus.geforce.nl/~mb/files/games/yapb.cfg
42. chmod 755 yapb.cfg

-       Don't forget to edit the newly downloaded yapb.cfg to your own needs and settings

43. cd ../../amxmodx/configs/
44. mv maps.ini maps.bak
45. wget https://zeus.geforce.nl/~mb/files/games/maps.ini
46. chmod 755 maps.ini

-       Don't forget to edit the newly downloaded maps.ini to your own favourite maps

47. mv amxx.cfg amxx.bak
48. wget https://zeus.geforce.nl/~mb/files/games/amxx.cfg
49. chmod 755 amxx.cfg

-	Don't forget to edit the newly downloaded amxx.cfg to your own needs and settings

50. mv users.ini users.bak
51. wget https://zeus.geforce.nl/~mb/files/games/users.ini
52. chmod 755 users.ini

-       Don't forget to edit the newly downloaded users.ini to your own needs and settings

53. mv modules.ini modules.bak
54. wget https://zeus.geforce.nl/~mb/files/games/modules.ini
55. chmod 755 modules.ini

-       Comment out all 10 modules at the bottom of the file

56. cd ..
57. wget https://zeus.geforce.nl/~mb/files/games/csdm_2.1.3d_KWo.zip
58. unzip csdm_2.1.3d_KWo.zip
59. rm csdm_2.1.3d_KWo.zip
60. cd configs/
61. mv csdm.cfg csdm.bak
62. wget https://zeus.geforce.nl/~mb/files/games/csdm.cfg
63. chmod 755 csdm.cfg

-       Don't forget to edit the newly downloaded csdm.cfg to your own needs and settings

64. cd ../plugins/
65. wget https://zeus.geforce.nl/~mb/files/games/amx_bhop.amxx
66. wget https://zeus.geforce.nl/~mb/files/games/csdm_refill.amxx
67. wget https://zeus.geforce.nl/~mb/files/games/multijump.amxx
68. wget https://zeus.geforce.nl/~mb/files/games/loadingsound.amxx.182
69. mv loadingsound.amxx.182 loadingsound.amxx
70. chmod 755 amx_bhop.amxx csdm_refill.amxx multijump.amxx loadingsound.amxx

71. cd ../configs/
72. mv plugins.ini plugins.bak
73. wget https://zeus.geforce.nl/~mb/files/games/plugins.ini
74. chmod 755 plugins.ini

75. mv stats.ini stats.bak
76. wget https://zeus.geforce.nl/~mb/files/games/stats2.ini
77. mv stats2.ini stats.ini

78. cd ~/cs16/valve/
79. mkdir SAVE
80. chmod 775 SAVE/

81. cd ~/cs16/cstrike/
82. mv server.cfg server.bak
83. wget https://zeus.geforce.nl/~mb/files/games/server_csdm.cfg
84. mv server_csdm.cfg server.cfg
85. chmod 775 server.cfg

86. cd ~/cs16/
87. ./hlds_run -game cstrike +ip 192.168.1.191 +port 27015 -pingboost 1 +sys_ticrate 1000 +fps_max 1000 +fps_modem 1000 +map cs_militia +maxplayers 24

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

88. 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.

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

        hostname:  My Counter-Strike 1.6 Server
        version :  48/1.1.2.7/Stdio 8684 secure  (10)
        tcp/ip  :  192.168.1.191:27015
        map     :  cs_militia at: 0 x, 0 y, 0 z
        players :  0 active (24 max)

        #      name userid uniqueid frag time ping loss adr
        0 users

90. CTRL a + d (detached)
91. You now have a fully functional Counter-Strike 1.6 server with Metamod, AMX Mod X, CSDM, YAPB and some very cool plugins. Let's go!