Attention! This method of creating a server from scratch. If you decide to create your own server, this way you will be opening "test", because if you can not, then there is no sense to keep the server.
Let's start!
1.Download server.
Download HLDS
Download HLDS
Install, the installation path is better to leave the default (C: \ Program Files \ Valve \ HLServer). Run HldsUpdateTool.exe, the process will check for updates (the program, not the server). If there are updates, she will download and install them. Create a folder server (for example: D: \ server). This folder will download server. Next, we need to start with the keys HldsUpdateTool.exe-command update-game cstrike-dir "full path to the server folder (without the quotes)." If the path server - D: \ server, the key will look like this:-command update-game cstrike-dir D: \ server
How to start with the key? The easiest way to do this through a shortcut: Right-click on hldsupdatetool.exe and choose Create Shortcut. We go to its properties (right-click on the shortcut -> Properties). We look at the field of the object, where we should be "C: \ Program Files \ Valve \ HLServer \ HldsUpdateTool.exe" (if you've done everything exactly for this article.) We just need to add this line keys, written above. As a result, it looks like this: "C: \ Program Files \ Valve \ HLServer \ HldsUpdateTool.exe"-command update-game cstrike-dir "Full path to the folder on the server (without the quotes)." Do not mess up with a space, it should look exactly as it is written, click "Apply". Running a label, will the download HLDS.
Attention! It happens that the server is not responding and downloading is not, will have to try again, but later. After loading into the server, will be a bunch of files, this is our HLDS. Immediately make a copy of the folder just in case, that was how to recover. Folder with the server, you can move it to any other convenient place.
2.Setting.
The main parameters are stored in cstrike\server.cfg.
Open and see a bunch of labels like that.
Note the last parameter - sv_lan, nothing confused.
Next, create a *. Bat file (* - any name) in the root folder on the server, open it in notepad and write there the Server startup Script
Let us consider what is written here:
/ high - put a high priority
-console - server starts in console mode
-game cstrike - run server with CS
-nomaster - do not print server in an Internet server list (specify if necessary)
-insecure - disable VAC (cheat)
+ maxplayers 20 - the number of slots (up to 32)
+ sv_password 333 - password to the server
+ map de_dust2 - the server to start the map de_dust2
27,016 + port - port on which the server will run
+ ip 255.255.255.255 - ip address of the computer on which you will find a server (you can neukazyvat, u will issue automatically)
-noipx - command to plug booster (just look pozhzhe)
Feature of this launch is that after a locked server, the server will automatically reboot
Save the changes, just inscribed you, and continue to run the server only in this file.
3. Installing Metamod.
Metamod to connect additional mods to the server, such as the AMX Mod X, StatsMe, anti-cheat, etc.
You can download Metamod c Official page.
In the folder create a folder cstrike addons, and inside the folder metamod. And to extract a file metamod.dll it. Open the \ cstrike \ liblist.gam (notebook) and fix line gamedll "dlls \ mp.dll" on gamedll "addons \ metamod \ metamod.dll" and save.
Everything metamod installed, you can install mods.
4. Installing and configuring the AMX Mod X
Pain AMX Mod X 1.8.1 from the Official site.From all that is presented on the page, download the AMX Mod X Base and Counter-Strike Addon ..
After unpacking, we fill up the two addons folder in the directory / cstrike /, replace the question, answer YES!
In the folder cstrike / addons / metamod open the file plugins.ini (create it if it is not), it prescribes the line:
win32 addons / amxmodx / dlls / amxmodx_mm.dll and save. So we hooked AMX Mod X.
5.Setting AMX
Go to the folder csrtike / addons / amxmodx / configs, open a notepad file amxx.cfg (it contains the basic settings for AMX Mod X)
Now open modules.ini [b], it contains a list of plug-ins. All that is written with the character [b] ";" [b] is a comment and is ignored. So to disable the module, put in front of his title character [b] ";" [b].
Without going into details, let's a set of modules:
engine
fakemeta
;geoip
;sockets
regex
;nvault
cstrike
csx
;hamsandwich
fakemeta
;geoip
;sockets
regex
;nvault
cstrike
csx
;hamsandwich
Go to File [b] users.ini. It itemized the powers users. At the bottom line of the file will look. One line - one user.
- Nickname or ip or steam_id
- Password
- Flags of office
- Sign-on flags
Flags of office:
a - Flag immunity. Man can not kick / ban / to slay / slap, etc.
b - The flag, allowing the connection to the backup slot.
c - Flag command access amx_kick.
d - Flag access to commands and amx_ban amx_unban.
e - Flag access to commands and amx_slap amx_slay.
f - Flag command access amx_map.
g - Flag permission to change settings via cvar amx_cvar.
h - Flag access amx_cfg.
i - Flag access amx_chat and other chat commands.
j - Flag amx_vote and access to other teams vote.
k - access to change the flag cvar variable sv_password.
l - Flag amx_rcon access and change all cvar in the server.
mt - Reserved flags (for third-party plug-ins)
u - Flag access the menu.
z - User Flag. Does not give any authority.
Flags Sign-on
a - off the player if the password does not match
b - clan tag
c - it steam_id or won_id
d - this is ip
e - password is not checked (only user name / ip / steam_id)
k - name or tag is case sensitive (that is, if you set this flag to nick Player and it is password, then anyone can use the name plAyEr, no authority in doing so he will not get)
Make yourself admin:
by ip:
"Your ip (standard 192.168.1.2)" "your password" "abcdefghijklmnopqrstu" "de"
by nick:
"Your user name" "your password" "abcdefghijklmnopqrstu" "a"
Example:
"192.168.1.2" "123" "abcdefghijklmnopqrstu" "de"
"NickName" "123" "abcdefghijklmnopqrstu" "a";
To access the admin server to write to a file userconfig.cfg (if not created) which is in the folder cstrike your dissent (not the server!) Line setinfo "_pw" "your password" (Example: setinfo "_pw" "123") ..
Or in the game, even when not logged on the server, write in console setinfo "_pw" "your password" (Example: setinfo "_pw" "123")
If you want to connect AMX MOD X plugins, go to
7.Ne comes to the server? wrote the protocol does not say that? Fix it! Dproto
Dproto - a library, to be connected through Metamod, allows you to login to the two protocols (47 and 48) and has a lot of useful settings. New versions Dproto updated on the forum (where you can also ask the developer): http://cs.rin.ru/forum/viewtopic.php?f=29&t=52728.
Download the latest version. Dproto create a folder in the directory C: \ serv \ cstrike \ addons \. Dproto.dll file from the archive in the folder bin \ windows copy the folder C: \ serv \ cstrike \ addons \ dproto \. The file metamod \ plugins.ini append the following line: win32 addons / dproto / dproto.dll.
Dproto.cfg file from the archive, place the root of the server (D: \ Server \). It contains settings dproto.
8.AMX Team.
9.Otkryvaem ports on the modem D-link DSL-2500U and similar
what does it do?
Answer: it simply, it is necessary that the external un cooperated with the internal ip for a specific program (in this case kc) on the specified port for the program.
1. Open the web interface of your modem, the default address is 192.168.1.1, enter the username and password (default is admin, admin)
All offers and see something like this:
2. Click the tab Advanced, then in the left menu, select Virtual Server:
Click add and move on to the next stage ..
10. Binding to the DNS (Dynamic DNS) on the modem D-link DSL-2500U and similar ...
3.Openning following window
- Ready-to-use, now when your server is running (for example on port 27016) will be available for the domain name (Example: danlex.homelinux.com: 27016) does not forget to add at the end of the port! Do not forget to add at the end of the port!
Click add and move on to the next stage ..
3.In the window that appears, choose the Custom Server and come up with its name.
Server IP address 192.168.1.2 write
Stacked External port start and External port end
prescribe ports, for example 27015,27016,27017 etc.
Protocol take UPD
I opened 3 ports, you should not necessarily be the same, maybe one, maybe even ten!
after that click apply and restart the modem ..
Now when you run the server u see 192.168.1.2, via the website whoer.net know your external IP, add the port, throw your friends and have a good time!
10. Binding to the DNS (Dynamic DNS) on the modem D-link DSL-2500U and similar ...
Q: Why is it necessary?
A: Since we have a dynamic IP (always changing), is not very convenient in every time uznovat your IP, port to add to it, etc.
That is what the Dynamic DNS function on the modem D-link DSL-2500U and similar, which allows you to create a domain name for access to your computer without the need to track your IP address ..
Begin =)
1.Otkryvaem your modem web interface (see point 1 in section 9)
2.Klikaem in the left menu Dynamic DNS and in the resulting window, click "add"
3.Openning following window
Here, we introduce data ...
-D-DNS provider - the provider selection bar, which we will be taking the CSN
We offer providers and dyndns.org tzo.com (for example, I chose dyndns.org)
before moving on to the next line, we need to register with one of these providers! (website in English) there are a lot of steps, I will show, if you know English and there is very simple ..
-Hostname write domain name is chosen from the provider (Example: danlex.homelinux.com)
-Interface choose pppoe_ * _ * _ * / ppp_ * _ * _ * (*-the value, it can be different, so do not have. Example: pppoe_8_35_1/ppp_8_35_1)
Next-table DynDNS / TZO Settings, enter the username and password you used when registering with the provider (the TZO, email and key)
-We click apply and restart the modem ..