You are probably reading this section right because you have
been playing on your own server and came across that situation where you decided
it was time to kick another player, or else noticed a variable that you wish
you had previously set differently, and are now wondering how to do it from
the in-game console. It is very simple, and some people make it much more difficult
than it really is. The first thing you need to do is add the line:
"rcon_password <password>"
to your server.cfg found in the directory of the mod you run on
your server, with <password> being any password that your imagination
can create. Next, while in the game, hit the “~“(tilde) key to bring
down the in-game console. Before you can start typing server commands and variable
changes, you must take rcon (remote control) of the server. If you are in your
server all you have to do is type “rcon_passowrd <password in server.cfg>”.
You can also go to our files/scripts for the rcon.cfg, a basic file you can
put into your cstrike directory in order to access your rcon automatically when
you log into your server. Edit the file with your server information and make
sure the extension is .cfg. Then, when you join the server, type exec rcon.cfg,
and you have instant access to your server via rcon. This comes in very handy
if you run a multiple port server. You can then type in "rcon_password
<password>" into the in-game console. If the password was correct,
you now have rcon of the server. All server commands and variables are typed
into the game console just as in the server console, but you must add "rcon"
before every command. If you wanted to kick someone, for instance, you would
need to type "rcon kick <playername>" or "rcon kick <userid>",
or if you wanted to turn on friendlyfire, then you would type "rcon mp_friendlyfire
1". When you run more than one server from one machine, then the rcon gets
a little tricky. Multiple servers on one ip address requires the specification
of different ports. Lastly, if you want to remotely administer your dedicated
server when it is full, start your client Half-Life game as normal. Without
getting into a game, just open up the console and start with "rcon_address
<ip address>", where <ip address> is the ip addy of your server.
Then input rcon_port <port#> of your server. Next use "rcon_password
<password>". Then let loose with your "rcon <commands>".
There are other easier tools out there that will allow you to
remotely administer your server. Go to our tools section for
more information.