View Full Version : manual admin COD4
Big Bang Theory
11-10-2007, 10:53 PM
I know a lot about COD1.5 / UO and have just started a COD4 server. I guess I don't understand one very basic thing about it and that is setting the rconpassword. It seems like in the game your should be able to type
/rcon login XXXXXXX where XXXXXXX is your rconpassword defined in your config.cfg file. I know that my rcon password is set OK because using rcon4cod works (shows the status) but I dont get why in the game it acts like I have not defined the rcon password. I have tried /rconpassword xxxxxxx and /rcon login xxxxxxx
but after either if I type /status or /rcon status it does nothing what am I doing wrong? and does the ban.txt file go in the /Main just like the original COD if not modded? Please help Thanks Big Bang Theory
RaDioAcTivE
11-10-2007, 11:38 PM
Here's my generic post for rcon. Make sure you're pulling the entire console down by holding the shift key while pressing the tilda{~}. COD2 and COD4 differ in that way from COD and UO. The rest is probably what you already know but here it is anyway...
As well as the /rcon login password you can put the login in your shortcut target line as well.
"C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +rcon login ***** +password **** +connect ***.**.***.***
That will connect you with rcon logged into a private slot to a specific server. In general all of the basic rcon for the most part seems to be the same as in COD2. Don't forget that you have to hold the shift key down while pressing the ~ key to pull down the console.
/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.
Console Commands
/map mapname
Loads the map specified by mapname.
/map_rotate
Loads next map in rotation set in sv_maprotation.
/serverinfo
Shows the current server's settings.
/map_restart
Restarts the map.
/kick [name]
Kicks a player by name from the server.
/clientkick [id]
Kicks a player by client id from the server.
/status
Displays info of all the players on the server.
/banUser [name]
Bans a user by their ingame name. Writes their GUID to ban.txt
/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
/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.
/tell [id]
Sends private message to specified client id
Hre'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
Back to Top
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
Back to Top
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
Back to Top
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
Back to Top
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!”
Havok
11-11-2007, 04:21 PM
I've come a long way this weekend getting a COD4 server up and running but this RCON thing has me stumped. I have a password set in my multiplayer config file for this but when I pull down the console with ctrl+tilde I am unable to log in with the above pw and in fact I am unable to do any /rcon command. What does happen though is a drop down menu appears, alphabetically driven, for rcon commands .... I think. I haven't read in the forums about this or how to use it. Plus I couldn't get IT to work either. Any help will be appreciated.
Big Bang Theory
11-11-2007, 09:45 PM
as radioactive mentioned it is [shift] + tilde not [cntrl] + tilde and after you /rcon login xxxxxxx and maybe type /rcon status , you have to scroll down to the bottom of the console. It did work for me, and I did not know about using the shift key was my problem Good Luck! it seems like this is agreat place for support! thanks all! BBT
Oh it also seems that instead of the normal 6 or 7 digit GUID they are now using the full 16 digit PB guid as an identifier.
http://www.bigbanggamers.com/images/BBG_sig_tag.jpg
Havok
11-11-2007, 10:24 PM
Yeah, I knew Shift+Tilde was the full console but I thought that ctrl+tilde was a smaller, drop down version. Seems just tilde alone will bring that down.
Anyway, I went back in as you suggested BBT and it worked this time. I think before I might have been forgetting the forward slash before "rcon" while logging in. Does anyone know if there is an rcon command to switch to a certain gamemode or to the next gamemode?
RaDioAcTivE
11-12-2007, 01:25 AM
set g_gametype "***"
That should do the trick.
Big Bang Theory
11-12-2007, 10:15 AM
I have not tried it yet but I'm sure you know /rcon gametype xx map xxxxxx
I have not had much time to "play" with my server because within 5 minutes of my starting it, it has been full and stays full day and night! COD4 is clearly going to be VERY popular!
Also be aware that it requires a map_restart (or simply waiting for the next map rotation for a gametype change, but if you have the gametype specified in maprotation, it might default to that. Below is my Map Rotation config. I am using TDM (war) by choice, I am sure you can mix it up if you choose. Again, I wish I had the luxury of speaking from experience, I just havent had the opertunaty to yet :)
//************************************************** ****************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//************************************************** ****************************
set g_gametype "war"
//************************************************** ****************************
// DM -- FREE FOR ALL DEATHMATCH
//************************************************** ****************************
//set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"
//************************************************** ****************************
// DOM -- DOMINATION
//************************************************** ****************************
//set sv_mapRotation "gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant"
//************************************************** ****************************
// KOTH -- HEADQUARTERS
//************************************************** ****************************
//set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"
//************************************************** ****************************
// SAB -- SABOTAGE
//************************************************** ****************************
//set sv_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant"
//************************************************** ****************************
// SD -- SEARCH & DESTROY
//************************************************** ****************************
//set sv_mapRotation "gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant"
//************************************************** ****************************
// WAR -- TEAM DEATH MATCH
//************************************************** ****************************
//set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
set sv_mapRotation "gametype war map mp_strike gametype war map mp_vacant gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_crash gametype war map mp_convoy"
Havok
11-12-2007, 11:55 PM
Well, I tried what Radioactive said and it worked like a charm. I wasn't able to string it together with a 'change map command' as BBT was suggesting though, and I tried a few different combo's. Changing the gametype and then changing the map separately did work though.
wcSki
01-05-2008, 11:25 PM
Is there a way to kick a player with reason?? and if you what is the command?
/rcon clientkick 1 "reason for kick"
Is what I tried... is this something I have to do through punkbuster?
Ski
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.