November 08, 2026, 07:04:25 pm

Author Topic: D00M cs 1.6 Series - Creating your server with AmxmodX [STEAMCMD]  (Read 50 times)

0 Members and 1 Guest are viewing this topic.

Offline D00M

This is a part of my series of cs 1.6 tutorials, someone asked my help creating a server so why not make a tutorial for everyone. We're going to use steamCMD as it is the best and recent.

Firstly we're going to install steamCMD and cs 1.6 server thro that.

Steamcmd
1. Go https://developer.valvesoftware.com/wiki/SteamCMD
2. Follow the steps
3. When you're downloading a app download a app number 90
4. You're done.


Remember if you have linux you may repeat app_update 90 multiple times because of a bug and then app_update 90 validate

General Server set-up
There's basicly no huge knowledge doing so, just go to ur cstrike folder and find server.cfg, open it and copy-paste this pre optimized server.cfg which I made, and edit the hostname and Rcon password only.

Code: [Select]
// Use this file to configure your DEDICATED server.
// This config file is executed on server start.
// This is a comment

//GENERAL
// default server name. Change to "Bob's Server", etc.
hostname "CHANGE THIS"

//sv_lan <0/1> 0=Public/LAN, 1=LAN Default: 0
sv_lan 0

// sv_contact <email/web address> Contact email for server admin
sv_contact "[email protected]"

// sv_region <1-7> - The region of the world to report the server in.
// -1 World
// 0 US East coast
// 1 US West coast
// 2 South America
// 3 Europe
// 4 Asia
// 5 Australia
// 6 Middle East
// 7 Africa
sv_region 3

//ROUND
// mp_buytime <seconds> - The amount of time to allow purchasing weapons/equipment on round start
mp_buytime 0.45

// mp_c4timer <seconds> - How long before the c4 explodes
mp_c4timer 45

// mp_timelimit <minutes> - How long each map should be played before switching levels
mp_timelimit 25

// mp_freezetime <seconds> - How long players are unable to move during round starts
mp_freezetime 5

//mp_roundtime <1-9> How much time in minutes does a round last. Default: 5
mp_roundtime 5

// mp_startmoney <money> - Specify how much money players start off with
mp_startmoney 800

//mp_friendlyfire <0/1> Turn on/off friendlyfire. Default: Off
mp_friendlyfire 0

//mp_footsteps <0/1> Turn on/off footsteps. Default: On
mp_footsteps 1

//mp_flashlight <0/1> Turn on/off the ability for clients to use flashlight. Default: Off
mp_flashlight 0

//mp_fraglimit <##> Amount of frags a player can exceed before changing maps. Default: 0
mp_fraglimit 0

//mp_maxrounds <##> Amount of round to play before server changes maps. Default: 0
mp_maxrounds 0

//mp_winlimit <0-20> Max number of rounds one team can win before server changes maps. Default: 0
mp_winlimit 0

// mp_spawnprotectiontime Time in seconds to Kick players who team-kill after round restart. Default: 5
mp_spawnprotectiontime 5

// mp_autoteambalance <0/1> Force clients to auto-join the opposite team if they are not balanced. Default: On
mp_autoteambalance 1

//mp_limitteams <0-20> Max # of players 1 team can have over another. Default: 2
mp_limitteams 2

//mp_autokick <0/1> Kick idle/team-killing players. Default Off
mp_autokick 0

//mp_tkpunish <0/1> Punish TK'ers on next round? Default: On
mp_tkpunish 1

//mp_hostagepenalty <##> How many hostages a Terrorist can kill before being kicked, 0 to disable. Default: 5
mp_hostagepenalty 5

// disable autoaim
sv_aim 0

// sv_cheats <0/1> - Whether to allow game cheat commands to be used by clients. 0 = off | 1 = on
sv_cheats 0

//VOICE-CHATTING
//sv_voiceenable <0/1> Allow clients to use mic. Default: 1
sv_voiceenable 1

//sv_alltalk <0/1> Players can hear all other players, no team restrictions. Default: Off
sv_alltalk 1

//sv_voicecodec Specifies which voice codec DLL to use in a game. Set to the name of the DLL without the extension.. Default:voice_speex
sv_voicecodec voice_speex

//sv_voicequality <1-5> the bps of the voice.
//1-2400bps
//2-6000bps-DEFAULT
//3-8000bps
//4-11200bps
//5-1520bps
sv_voicequality 2

//mp_chattime <0-120> amount of time in seconds players can chat after the game is over. Lower value = faster map load change. Default: 10
mp_chattime 10

//RATES-SPEEDS
//sv_gravity World Gravity Default: 800
sv_gravity 800

//sv_maxvelocity Maximum speed any ballistically moving object is allowed to attain per axis. Default: 3500
sv_maxvelocity 3500

//sv_maxspeed Maximum speed a player can move. Default: 320
sv_maxspeed 320

//CLEINT CVARS
//decalfrequency Amount of time in seconds a player can spray their decal. Default: 10
decalfrequency 10

//sv_consistency <0/1> Force cleints to pass consistency check for critical files before joining server? Default: 0
sv_consistency 0

//sv_timeout <##> After this many seconds without a message from a client, the client is dropped. Default: 65
sv_timeout 65

//mp_playerid <0/1/2> Controls what information player see in the status bar: 0 all names; 1 team names; 2 no names. Default: 0
mp_playerid 0

// sv_pausable <0/1> - Whether to allow clients to pause the server. 0 = off | 1 = on
sv_pausable 0

//sv_allowupload <0/1> Allow clients to upload their custom decals to the server. Default: 1
sv_allowupload 1

//sv_allowdownload <0/1> Allow clients to downnload files. Default: 1
sv_allowdownload 1

//sv_unlag <0/1> Enables player lag compensation. Default: 1
sv_unlag 1

//SPECTATING
//mp_allowspectators <0/1> Allow spectators on the server. Default: 1
mp_allowspectators 1

//mp_forcecamera <0/1> Force dead players to first person mode, effectively disabling freelook. Default: Off
mp_forcecamera 0

//sv_hltv <0/1> Enables HLTV on the server. Default: 0
sv_hltv 0

//BANDWIDTH RATES
//sv_minrate <0-100000> Min bandwidth rate allowed on server. Default: 0 (unlimited)
sv_minrate 0

// sv_maxrate <1000-100000> - The maximum bandwidth rate the server is allowed to transmit to clients
sv_maxrate 100000

//sv_maxupdaterate Maximum updates per second that the server will allow. Default: 101
sv_maxupdaterate 101

//sv_minupdaterate Minimum updates per second that the server will allow. Default: 60
sv_minupdaterate 60

//sys_ticrate Max FPS (1000 Max) the server is to render
sys_ticrate 200

//SERVER LOGGING
// log <on/off> Enable server logging? Default: Off
log off

//sv_logbans <0/1> Log server bans in the server logs. Default: 0
sv_logbans 0

// sv_logecho <0/1> Echo log information to the console. Default: 1
sv_logecho 1

// sv_logfile <0/1> Log server information in the log file. Default: 1
sv_logfile 1

//sv_log_onefile <0/1> Log server information to only one file. Default: 0
sv_log_onefile 0

//sv_logsdir Folder in the game directory where server logs will be stored.

//RECON
//rcon_password Set rcon passsword. Leave blank to disable rcon
rcon_password ""

//sv_rcon_banpenalty <mins> Number of minutes to ban users who fail rcon authentication. Default: 0
sv_rcon_banpenalty 0

//sv_rcon_maxfailures <0-20> Max number of times a user can fail rcon authentication before being banned. Default: 10
sv_rcon_maxfailures 10

//sv_rcon_minfailures <0-20> Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned. Default: 5
sv_rcon_minfailures 5

//sv_rcon_minfailuretime <1-seconds> Number of seconds to track failed rcon authentications. Default: 30
sv_rcon_minfailuretime 30

// lists of banned players.
// load ban files
exec listip.cfg
exec banned.cfg

For security reasons please disable rcon by putting no password for it, if rcon access is a must please use http://safepasswd.com to generate one.

Alright once that is done you're all setup to install amxmodx.

Installing metamod
To make amxmodx work you need to install Metamod addon.

  • In your cstrike folder create a folder called "addons" after that Go to http://metamod.org/ and choose newest metamod and your OS and download it.
  • Once you have downloaded to metamod, create "metamod" folder in addons folder and "dlls" folder inside metamod folder
  • Put the metamod dll inside dlls folder, and go back to metamod folder and create a file named plugins.ini
[li]Go back to your cstrike folder and find liblist.gam and open it with a text editor, then find this for windows: [/li][/list]
Code: [Select]
gamedll "dlls\mp.dll" and replace it with this:
Code: [Select]
gamedll "addons\metamod\dlls\metamod.dll"
If you're using Linux please find
Code: [Select]
gamedll_linux "dlls/mp_i386.so" and replace it with
Code: [Select]
gamedll_linux "addons/metamod/dlls/metamod_i386.so"[/li]

[li]Go back to metamod folder and open plugins.ini with a notepad or any text editor, and put this line inside for windows: [/li][/list]
Code: [Select]
win32 addons\amxmodx\dlls\amxmodx_mm.dll and if you're using linux please use this line
Code: [Select]
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
    [/li]

And you're done installing metamod.
[/list]

AmxmodX
  • 1. Go here http://www.amxmodx.org/downloads.php and choose your os download from AMX Mod X Base (Windows or Linux)
  • Open the downloaded file and extract the amxmodx folder to addons/
  • Once that is done go back to http://www.amxmodx.org/downloads.php and download Counter-Strike Addon to your desired OS (Windows, Linux)
  • Open the downloaded file and extract the amxmodx folder to addons/ again and overwrite every file.
  • You're done!

Congratulations you're now done, please before installing any plugins to amxmodx check the directory structure:

Quote
amxmodx\ - this is where AMX Mod X goes
      dlls\ - amxmodx_mm.dll should go here
      modules\ - Where modules are stored (_amxx.dll or _amxx_i386.so etc)
      plugins\ - Where plugins are stored (..amxx)
      scripting\ - Where example source code and the compiler/assembler are stored
        include\ - Where include files for source code is stored
        compiled\ - Where the compiler batch file stores .amxx output
      doc\ - This documentation is kept here
      data\ - Binary data, for example saved stats, language caches, and GeoIP information
        lang\ - Dictionary text files for AMX Mod X ML features (multi lingual)
      configs\ - Configuration files
      logs\ - AMX Mod X log files
[/b]


Bonus: Installing a amxmodx plugin
Installing a plugin for amxmodx is easy as hell! Just go to alliedmodders and find a plugin you desire, download the sma and .amxx file and possible models/sounds, and put them to rightful directories.

Models go to your base folder (cstrike) to a folder called /models and sounds go to /sounds

.sma files go to addons/amxmodx/scripting

.amxx files go to addons/amxmodx/plugins

Once the .amxx files are on plugins folder, please go to to configs folder on amxmodx and find plugins.ini, open it with a text editor
and at the bottom add the pluginname.amxx