» Thu Mar 31, 2011 4:56 am
I've not tried this yet myself and I haven't seen a list of tried and tested rcon commands for C2 but here are the commands for C1:
Login as admin while in-game, you will need to then type the following in rcon
rcon_connect addr:[your server ip] port:[rcon port] pass:[rcon pass]
con_restricted 0
Get the list of players in the server
rcon_command status
Bans player for (ban_timout) minutes from server. [See ban_timeout]
rcon_command ban "[player name here] "
Removes player from ban list
rcon_command ban_remove "[player name here] "
Shows currently banned players
rcon_command ban_status
Ban timeout in minutes
rcon_command ban_timeout 30
Kicks player from game
rcon_command kick "[player name here] "
Kicks client with slot a slot from game.
rcon_command kickid [slot number]
Kills the player
rcon_command kill "[player name here] "
sv_gamerules
rcon_command sv_gamerules "PowerStruggle"
Change the map
rcon_command map [map name here]
Restart the round
rcon_command sv_restart
Switch to next level in rotation or restart current one
rcon_command g_nextlevel
Notify players of the next map to play
rcon_command net_next_map
Broadcasts a server message to all players in the server
rcon_command sv_say "[messag here] "