Jump to content

Home

What is the command for a passworded server?


jaycougar

Recommended Posts

In your server.cfg file add the following line:

 

seta rconpassword "your password here"

 

You can add your IP to your favorites list in game and then click on it and click "password" there you can enter it so everytime you join your own dedicated server you won't have to enter it.

 

Of course, you can enter the password in game (after you've set it in the cfg file) by typing:

 

rconpassword <your password>

 

(in the console)

 

Then when you type commands in the console, just type \rcon before the command.

Link to comment
Share on other sites

Actually, what I think he wants is to be able to lock the server with a password so only those with the password can enter the server. In that case you need two cvars in you server.cfg file:

 

seta g_needpass "1"

seta g_password "yourpassword"

 

This prevents anyone without the password from joining. If you just want to reserve a few slots with a password and leave the rest open to the public, then create "private clients" with:

 

seta sv_PrivateClients "n"

seta sv_PrivatePassword "anotherpassword"

 

where "n" is the number of reserved slots. These are subtracted from your total number of slots, and the rest are open to the public. Of course, "yourpassword" and "anotherpassword" are replaced with passwords that you make up.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...