Main Menu

CoD4 RCON

Started by Anonymous, June 22, 2008, 10:52:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anonymous

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 (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!ââ,¬Â
                                       
  • When you temp ban you cannot have a ban of more than an hour!
  • When you temp ban it is not written to the ban.txt file but held in memory - a server restart will lose it.
  • When you perm ban it is written to ban.txt in the cod4/main folder
  • You can remove a perm ban by using the unban button on the players page of RCONmax (just enter the name of the player i.e. dMw|BlueBall or Xenon - my guess is that it is case sensitive)
  • If you have access to the server desktop you can manually add perm bans to the ban.txt by entering the GUID followed by a space and then the players name e.g. cfbdd15295ff9f3557b775ad3fb2a227 Xenon (you need to make sure there is a carriage return at the end of the file)
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

Dr Sadako

Thanks. Great work as always BB. :thumbsup:
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

Penfold

Yes indeed :yahoo:

PEN

Liberator

Didn't ask me for any Java installs, my current one must have been high enough.

Nice work BB.

Doorman

#4
Good work. How long is tempBanClient? Hours, days, weeks?

EDIT: Note to self. Read what the nice man has taken the trouble to post!










     

Anonymous

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 :)

Doorman

Yes I already twigged that 5 seconds after posting. Hence my EDIT. :doh::rolleyes:










     

Anonymous

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

Anonymous

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 (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?

Anonymous

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.

Dr Sadako

Seems easy enough to use. Looks good that there are options to not allow certain perks/weapons if needed.
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

Anonymous

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).

target

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:
-=[dMw]=-target

I write down everything I want to remember. That way, instead of spending a lot of time trying to remember what it is I wrote down, I spend the time looking for the paper I wrote it down on.

Anonymous

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?

target

I've tried it, but it didn't seem to work.  I'll try again tonight when I get home.
-=[dMw]=-target

I write down everything I want to remember. That way, instead of spending a lot of time trying to remember what it is I wrote down, I spend the time looking for the paper I wrote it down on.