How Do I Set A Server Password?
Tomper
Join Date: 2003-02-10 Member: 13365Members
<div class="IPBDescription">Probably easy as pie but...</div> Hi,
Quick newbie question: how do I set a password for my HLDS server? I've tried to understand how to use the sv_password setting but I can't seem to get it right.
What should I enter, and where? In the commandline? In the server.cfg?
Thankful for your help,
/Tomper
Quick newbie question: how do I set a password for my HLDS server? I've tried to understand how to use the sv_password setting but I can't seem to get it right.
What should I enter, and where? In the commandline? In the server.cfg?
Thankful for your help,
/Tomper
Comments
in the console type:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
rcon_password <your rcon password>
rcon sv_password "<your server password here>"
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
it can also go into the server.cfg file to create a permanent server password.
//edit: had confusing password references
To set a password:
<b>admin_pass <i>password</b></i>
To remove a password:
<b>admin_nopass</b>
<!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif'><!--endemo-->
sv_password ""
You could probably also do it via the command line using +sv_password "foobar" (untested)