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 ../data/ && chmod 775 logs/ pwf/ train/
44. cd ../../amxmodx/configs/
45. mv maps.ini maps.bak
46. wget https://zeus.geforce.nl/~mb/files/games/maps.ini
47. chmod 755 maps.ini

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

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

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

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

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

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

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

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

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

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

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

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

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

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

87. cd ~/cs16/
88. ./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

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

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

91. CTRL a + d (detached)
92. 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!