Dead Men Walking

Old Server Admin Section => Game Admins => Archived Topics => COD Admins => Topic started by: Anonymous on June 22, 2008, 10:52:46 AM

Title: CoD4 RCON
Post by: Anonymous on June 22, 2008, 10:52:46 AM
You can use HLSW to carry out simple RCON tasks with CoD4. Just add server details (77.108.129.47:28960) to HLSW and enter the RCON Password (B1gSt1ck). You can then enter RCON commands in the console window and change maps etc.

If you want something a bit more powerful, I have found an RCON tool that is dedicated to working with CoD4; RconMax (http://www.rconmax.co.uk/rm/download.php?view.23) (click the little blue arrow to start the download) which (to me) seems much better than ModernRCON.

Please do not play around with settings yet as it took me ages to get it working and still ranked. There is a lot of grey areas surrounding what you can change and still keep the server ranked.
You can use it to change maps, kick people, restart maps, chat (just enter 55555 as port number and wait a few secs for chat to appear) - my router didnt need any ports opened so maybe yours wont either.

I've protected the server with a "watchdog" script as used for CSS. If you type QUIT in the HLSW/ModernRCON console it will kill the server but the script will restart the server for you - useful if it gets laggy!

Here is a full list of RCON Commands plagiarised from the net somewhere:

QuoteYou can join our server directly by creating a shortcut on the desktop and editing the commandline arguments

"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +rcon login bf2suck5 +password adminsonly +connect 77.108.129.47:28960

That will connect you with rcon logged into a public slot on the server (we have not created any private slots).

Basic RCON commands are:

/rcon say
/rcon status
/rcon clientkick #
/rcon banclient #
/rcon map_rotate

Here's some more information for those that are new to using rcon for the COD series. I do not know for sure that everything here works in COD4 but it's a good place to start until a comprehensive guide is put together. I also can't remember where I found this so unfortunatly I can't give credit to whoever wrote it but it was not me.

//Edit by BB - NB that after you have logged in with RCON all RCON commands start with /

Console Commands

/rcon map mapname
Loads the map specified by mapname.

/
rcon map_rotate
Loads next map in rotation set in sv_maprotation.

/serverinfo
Shows the current server's settings.

/rcon map_restart
Restarts the map.

/rcon fast_restart
Restarts the map quickly without going through the loading process (handy once everyone has joined).

/rcon kick [name]
Kicks a player by name from the server.

/
rcon clientkick [id]
Kicks a player by client id from the server.

/
rcon status
Displays info of all the players on the server.

/
rcon banUser [name]
Bans a user by their ingame name. Writes their GUID to ban.txt

/
rcon banClient [id]
Bans a user by their client number. Writes their GUID to ban.txt

/tempBanUser [name]
Kicks and temporarily bans player by name from server.

/tempBanClient [id]
Kicks and temporarily bans player by client id from server

/
rcon unban [name]
Unban every player banned with [name]. If you want to unban a single player whose name appears more than once, you should edit "ban.txt" manually.

/
rcon tell [id]
Sends private message to specified client id



Here's another version with more details.....

Kicking players
There are a few ways in which to kick players, but I'm only going to cover the easiest and best way to do so. It involves using the status and clientkick commands. I prefer using this method of kicking as it prevents you from having to type out a playerââ,¬â,,¢s name, which can be lengthy and difficult depending on the complexity of the name. In addition, the player could also change his/her name in mid command and then you'd be forced to re-type the new name. In other words, use the below described method.
Status displays a list of the people currently connected to the server, whether they're playing or spectators. It works as follows:

Example: /rcon status

The following is then displayed in your console:
Client ID Score Ping GUID Player Name IP Address
0 23 45 100000 {PJG} Crimson 165.56.24.45
1 13 65 100001 {PJG} Stalker 65.45.24.57
2 33 51 100002 {PJG} AimRed 65.56.21.35
3 25 30 100003 You Suck! 125.54.85.21
4 21 32 100004 {PJG} Buzz Litebeer 24.56.42.51
5 12 100 100005 {PJG} Flying Nun 161.61.41.56

Once this is displayed, you simply find the player you wish to kick from the server and note their Client ID. You then use the command, clientkick, with the ID of the person, to boot them from the server. For this example, we will kick client #3 for being a bad little boy:

Example: /rcon clientkick 3


Banning Players
Banning players is done almost exactly the same as kicking them, just uses a different command. If you find that someone warrants banning, simply use the above status command to obtain the players client id, then use the either the tempbanclient or banclient commands.

Example: /rcon status

The following is then displayed in your console:
Client ID Score Ping GUID Player Name IP Address
0 23 45 100000 {PJG} Crimson 165.56.24.45
1 13 65 100001 {PJG} Stalker 65.45.24.57
2 33 51 100002 {PJG} AimRed 65.56.21.35
3 25 30 100003 You Suck! 125.54.85.21
4 21 32 100004 {PJG} Buzz Litebeer 24.56.42.51
5 12 100 100005 {PJG} Flying Nun 161.61.41.56



Permanently Banning Players
Once this is displayed, you simply find the player you wish to ban from the server and note their Client ID. You then use the command, banclient, using the ID, to permanently boot the person from the server. For this example, we will kick client #3 for not getting the hint:

Example: /rcon banclient 3


Temporarily Banning Players
Temporarily banning players is a good way to get rid of annoying players that didnââ,¬â,,¢t really deserve and permanent ban but were not getting the hint in being kicked a few times. In our server config, I have sv_kickBanTime set to 3600 seconds, otherwise known as 1 hour. Using the above status info, temporarily banning client 4 would look like this:

Example: /rcon tempbanclient 4


UnBanning Players
UnBanning players is a little more complicated. There are currently 2 built-in ways to unban a player: 1) using the unBanUser command; 2) Connecting to your server via FTP and removing the player from the ban.txt file. If you banned players using 3rd party software, check with its user guide for info on ââ,¬Å"unbanningââ,¬Â.
Using the above example banned example, to remove the ban for ââ,¬Å"You Suck!ââ,¬Â, you would issue the following, matching the players name exactly:

Example: /rcon unbanuser ââ,¬Å"You Suck!ââ,¬Â
                                       
If any admin needs somebody banned when they are no longer on the server then tell us the username and approx time of offence and we can get GUID from logs and manually add then to ban.txt
Title: CoD4 RCON
Post by: Dr Sadako on June 22, 2008, 11:23:41 AM
Thanks. Great work as always BB. :thumbsup:
Title: CoD4 RCON
Post by: Penfold on June 22, 2008, 12:20:50 PM
Yes indeed :yahoo:

PEN
Title: CoD4 RCON
Post by: Liberator on June 25, 2008, 09:55:26 PM
Didn't ask me for any Java installs, my current one must have been high enough.

Nice work BB.
Title: CoD4 RCON
Post by: Doorman on June 25, 2008, 11:25:39 PM
Good work. How long is tempBanClient? Hours, days, weeks?

EDIT: Note to self. Read what the nice man has taken the trouble to post!
Title: CoD4 RCON
Post by: Anonymous on June 26, 2008, 10:54:38 AM
Default ban is an hour (3600 seconds), we can change it :devil: (but 3600 seconds is max you can enter)

Perm ban is, well, perm :)
Title: CoD4 RCON
Post by: Doorman on June 26, 2008, 02:50:49 PM
Yes I already twigged that 5 seconds after posting. Hence my EDIT. :doh::rolleyes:
Title: CoD4 RCON
Post by: Anonymous on June 27, 2008, 04:16:13 PM
Found a handy new RCON command:

/rcon fast_restart
Restarts the map quickly without going through the full loading process (handy once everyone has joined).

First post updated accordingly
Title: CoD4 RCON
Post by: Anonymous on July 02, 2008, 05:43:52 PM
Been messing around trying to find a better RCON client for CoD4 - ModernRCON seems to struggle to connect if there are more than about 4 people on the server. Discovered RconMax (http://www.rconmax.co.uk/rm/download.php?view.23) (click the little blue arrow to start the download). It seems much more polished than ModernRCON.

Most of the pages are self explanatory. You usually have to press a "get" button for it to pull in the info from the server - you'll get the hang off it I'm sure.

OB hopefully you will be able to connect with this one?
Title: CoD4 RCON
Post by: Anonymous on July 03, 2008, 10:06:12 AM
Here is a custom map list for RconMax. The file explains where you need to save it to (depending on whether you have xp or vista).

Click the "Custom List" button on the RconMax "maps" page to add them to the list of maps displayed in the maplist window.
Title: CoD4 RCON
Post by: Dr Sadako on July 03, 2008, 10:31:01 AM
Seems easy enough to use. Looks good that there are options to not allow certain perks/weapons if needed.
Title: CoD4 RCON
Post by: Anonymous on July 03, 2008, 10:35:47 AM
Quote from: Dr Sadako;236420Seems easy enough to use. Looks good that there are options to not allow certain perks/weapons if needed.
But as soon as we do the server is no longer ranked. We need to control things by Adminning it (if there is such a word as Adminning).
Title: CoD4 RCON
Post by: target on August 18, 2008, 12:25:31 PM
Hi all,
 
Hoping you can help me with this RCON stuff.
 
I've installed RcomMax and can connect that to the server and that works - but how do I use the rcon commands from within the game?
 
QuoteYou can join our server directly by creating a shortcut on the desktop and editing the commandline arguments
 
"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +rcon login bf2suck5 +password adminsonly +connect 77.108.129.47:28960

I've set up a desktop shortcut using the above, but had to change the password to dmw0pen to actually get onto the server. All the rcon commands like map_cycle, etc I can see but they won't work - I'm confused and in need of help......:crying:
Title: CoD4 RCON
Post by: Anonymous on August 18, 2008, 12:35:04 PM
Quote from: target;241448I've set up a desktop shortcut using the above, but had to change the password to dmw0pen to actually get onto the server. All the rcon commands like map_cycle, etc I can see but they won't work - I'm confused and in need of help......:crying:
Are you remembering to put the / at the start of the command?
Title: CoD4 RCON
Post by: target on August 18, 2008, 12:38:55 PM
I've tried it, but it didn't seem to work.  I'll try again tonight when I get home.
Title: CoD4 RCON
Post by: Anonymous on August 18, 2008, 12:55:02 PM
Quote from: target;241453I've tried it, but it didn't seem to work.  I'll try again tonight when I get home.
Try the "/rcon status" command - that will soon let you know if it is working.
Title: CoD4 RCON
Post by: target on August 18, 2008, 01:47:53 PM
Will do :)
Title: CoD4 RCON
Post by: Benny on August 18, 2008, 01:55:43 PM
works here.....

as does;

/rcon say HOLD
/rcon map_restart (or was it restart_map)

that's me fully trained..
Title: CoD4 RCON
Post by: Anonymous on August 18, 2008, 03:07:22 PM
Quote from: Benny;241472works here.....

as does;

/rcon say HOLD
/rcon map_restart (or was it restart_map)

that's me fully trained..
"/rcon fast_restart"  is the useful one :)
Title: CoD4 RCON
Post by: target on August 18, 2008, 05:17:57 PM
OK...
 
I can do /rcon say "put messages here" & /rcon fast_restart, but I can't for the life of me get /rcon status working.
 
I haven't tried /rcon map_rotate or /rcon map mapname yet...
Title: CoD4 RCON
Post by: Anonymous on August 18, 2008, 05:29:16 PM
Quote from: target;241490OK...
 
I can do /rcon say "put messages here" & /rcon fast_restart, but I can't for the life of me get /rcon status working.
 
I haven't tried /rcon map_rotate or /rcon map mapname yet...
Aaaah. I think the penny has dropped :lightbulb:

When you bring up the console do you get a 1-line console at top of the screen? If you do then to see the output of commands such as status you need to be in "full-screen console".

Press ` to get the 1-line and press SHIFT and ` to toggle full screen. You can SHIFT ` back to 1-line console.
Title: CoD4 RCON
Post by: target on August 18, 2008, 06:58:57 PM
That's probably it will, try that again later :)
 
Thanks for the help.
Title: CoD4 RCON
Post by: OldBloke on August 18, 2008, 07:01:10 PM
RconMax v1.0.9 is available. (http://www.rconmax.co.uk/rmvb/viewarticle.php?articleid=1)
Title: CoD4 RCON
Post by: target on August 20, 2008, 02:25:37 PM
Forgot to report back - yes that all works now - thanks for the help BB :)
Title: CoD4 RCON
Post by: Anonymous on September 08, 2008, 08:44:09 PM
I have registered my copy of RCONMax (the program we use for RCON to the CoD4 server). This means that in the current version (1.1.0.0) the advert screen at the start auto closes without clicking (it takes 3 seconds) and, in the next version you will be able to close it completely.
 
The guy is only looking for £3 or more which is peanuts really.
 
When you are going through the paypal pages to register the software, the link to enter your system key (from the settings tab of RCONmax) is not very obvious as it is quite small so you will have to keep your eyes peeled - I missed it but emailed project@rconmax.co.uk (project@rconmax.co.uk) with my registering email address and system key and he sent me a software key by return email.
Title: CoD4 RCON
Post by: Anonymous on September 17, 2008, 11:11:01 AM
bump for registering info plus first post in thread updated with info on banning.
Title: CoD4 RCON
Post by: Anonymous on September 23, 2008, 08:16:26 AM
RconMax 1.2.0.0 available

http://www.rconmax.co.uk/rmvb/viewarticle.php?articleid=15
Title: CoD4 RCON
Post by: Anonymous on November 16, 2008, 04:38:20 PM
RCONmax Version 1.3.0.0 available

http://www.rconmax.co.uk/rmvb/viewarticle.php?articleid=19
Title: CoD4 RCON
Post by: Anonymous on November 17, 2008, 09:34:42 PM
bump

see first post in this thread :)

http://www.deadmen.co.uk/forum/showthread.php?t=23843
Title: CoD4 RCON
Post by: Penfold on November 17, 2008, 09:36:42 PM
Thanks

lol.... disastrous tonight. Oldie, Blunt, Myself and several others - and could we change the map from Bloc - could we heck.

I'm going to reinstall RCON as it kept crashing.

PEN
Title: CoD4 RCON
Post by: Anonymous on November 17, 2008, 09:37:35 PM
nb there is a new version (link above)
Title: CoD4 RCON
Post by: Snokio on December 15, 2008, 04:20:00 PM
Quote"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +rcon login bf2suck5 +password adminsonly +connect 77.108.129.47:28960

Is there away of getting this command to work with the additional steam command (-gameidlaunch 12345678964248) ? I have tried several different combinations with no joy :sad: such as:

"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe"  +rcon login bf2suck5 +password adminsonly +connect 77.108.129.47:28960 -gameidlaunch 12345678964248
&
"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" -gameidlaunch 12345678964248 +rcon login bf2suck5 +password adminsonly +connect 77.108.129.47:28960

(i made the 12345678964248 up btw)

Any help would be appreciated!
Title: CoD4 RCON
Post by: Anonymous on December 15, 2008, 04:40:43 PM
Are you running CoD4 from Steam?

If so just create a shortcut on your desktop from Steam Games and add the rcon commands to the command line I would guess
Title: CoD4 RCON
Post by: Snokio on December 15, 2008, 05:28:40 PM
Sorted it :yahoo: I was changing the target of the desktop shortcut and not the steam shortcut (from which i then created a desktop shortcut from), so it's all working now!
Title: CoD4 RCON
Post by: target on December 17, 2008, 07:42:29 PM
New version of RconMax can be found here (http://www.rconmax.co.uk/rmvb/viewarticle.php?articleid=22) v.1.3.2.0
Title: CoD4 RCON
Post by: Anonymous on December 17, 2008, 07:51:23 PM
Actually, new version is 2.0.0.0 (http://www.rconmax.co.uk/rmvb/viewarticle.php?articleid=21) but I don't like it and I'm sticking with 1.3.2.0
Title: CoD4 RCON
Post by: target on December 17, 2008, 07:56:55 PM
The new 2.0.0.0 version is for WaW isn't it?
Title: CoD4 RCON
Post by: Anonymous on December 17, 2008, 07:58:05 PM
Quote from: target;255317The new 2.0.0.0 version is for WaW isn't it?

I thought it was for all versions but adapted to support WaW?

Who cares, the interface is horrible anyway :)
Title: CoD4 RCON
Post by: Anonymous on January 18, 2009, 10:52:59 AM
New version of RCONmax for CoD4 available at //www.rconmax.co.uk - see downloads section on right hand side of window
Title: CoD4 RCON
Post by: Whitey on March 14, 2009, 06:48:57 PM
Bump, RCON password changed.