Live 20 humans online 2 active servers Peak online today 36 Record 102

SoF2 Server Admin Commands: rcon, Kick, Ban and Votes

Run a Soldier of Fortune II server from in game: rcon login, changing maps and game types, kicking and banning, and controlling votes.

Updated 2 min read Servers and hosting

On this page

To run Soldier of Fortune II server commands from in game, log in with rcon: type /rconpassword yourpassword in the console, then put /rcon before each command, for example /rcon status, /rcon kick PlayerName or /rcon map mp_shop. The password is the rconpassword set in your server.cfg. Mods such as RoCmod add their own admin systems on top.

Logging in with rcon

  1. Set a password on the server in server.cfg: seta rconpassword "something-long-and-private"
  2. Join the server, or connect to it from the console.
  3. Enter the password in your console: /rconpassword something-long-and-private
  4. Send commands by starting each with /rcon, for example /rcon status.

Everyday commands

Standard SoF2 server commands (use with /rcon)
Command What it does
status Lists players with their slot number, score, ping and IP address
serverinfo Shows the server’s current settings
say "message" Sends a message to everyone as the server
map mp_shop Changes to a map now
map_restart Restarts the current map
g_gametype ctf then map … Changes game type. It takes effect when the next map loads.
timelimit 20 Changes any setting, here the time limit
exec server.cfg Reloads your config
kick PlayerName Removes a player by name
clientkick 3 Removes the player in slot 3 (from status), useful for names with colours or symbols

Banning players

SoF2 keeps a ban list in a file set by sv_banFile. Bans are added by IP address, so find the player’s slot and address with /rcon status first. Most admins use their mod’s ban commands instead, which are easier and can ban for a set time. Check your mod’s documentation.

Votes to kick can also ban a player for a while: g_voteKickBanTime sets for how long.

Votes

Players can call votes when g_allowVote is on. A vote is called with /callvote, for example /callvote map mp_shop or /callvote kick PlayerName, and others answer with /vote yes or /vote no, or the vote keys.

Vote settings
CVARWhat it doesDefaultRecommended
g_allowVoteAllows players to call votes for map changes, kicks, and other actions.11
g_voteDurationTime in seconds that a vote remains open for players to cast their ballot.60—
g_failedVoteDelaySeconds players must wait before calling another vote after one fails.1—
g_voteKickBanTimeMinutes a player kicked by vote is banned from reconnecting. 0 = kick only, no ban.0—

Mod admin systems

RoCmod, OSP and 1fx. Mod each add an admin system with levels, so trusted players can kick, mute, swap teams or pause without knowing the rcon password. Commands differ between mods, so check your mod’s documentation, and see our RoCmod guide.

Running a good server

  • Post your rules somewhere players can find them, such as the server’s message of the day or your Discord.
  • Warn before you kick, and kick before you ban.
  • Keep teams even with g_teamForceBalance rather than moving players by hand.
  • Claim your server on SOF2MP.com to add a description and website link to its page. See getting listed.

Frequently asked questions

How do I use rcon in SoF2?

Type /rconpassword yourpassword in the console, then start each command with /rcon, for example /rcon status.

How do I kick a player with a coloured name?

Use /rcon status to find their slot number, then /rcon clientkick with that number.

How do I change the game type on a SoF2 server?

Set /rcon g_gametype with the new type (dm, tdm, ctf, elim, inf or dem), then load a map with /rcon map.

Was this guide helpful?

Written and kept up to date by the SOF2MP.com community. Live numbers on this page come from our own tracking of every public SoF2 server. Spotted something out of date? Tell us on Discord.