Jump to content

Need Help with console commands old school way ;)


WolfSpirit

Recommended Posts

Hello I am new to Rcon type admin and I was wondering if anyone could point me in the right direction on how to do admin through Rcon the old school way :lol:

Link to comment
Share on other sites

Theres basically two sets of commands you need to learn, commands for COD4 and commands for Punkbuster.

 

Here is the PB Reference:

 

http://www.evenbalance.com/publications/cod4-ad/index.htm

 

 

The COD4 command guides are scattered all around, remember to prefix everything with rcon though...

 

/rcon login password

/rcon map_rotate

/rcon g_gametype sd

/rcon map mp_strike

/rcon say message

 

But basically just realize that everything in your config file is literally a command you could send over RCON:

 

/rcon sv_hostname My Server

..should change the server name without restarting it. I think thats the syntax but I'm not at my gaming computer. :)

Link to comment
Share on other sites

EDIT: Dues to the fact the rcon pass binded to a key can be hijacked if you press that key bind button on another server that your own which have cvar check for binds, it is best to do this another way:

 

You will still have a bind but its a bit more tricky to do, here we go:

Open notepad and write in: rcon login PASS

Save as login.cfg

 

then make this bind: /bind X exec login.cfg

This way they will not have any chance to get hold of your Rcon password

 

Some good start commands in there from BOTA:X.

Thing is I have spoken with WolfSpirit earlier today and he wanted an auto login to rcon when joining, unfortunately that cant be done if you don't set up an autoexec and if i remember correct they disabled that with 1.4 patch.

 

However there are ways to do this, and one is to make a bind for it:

/bind X rcon login PASS

 

Replace X with the button on your keyboard you want to use (I use F5) and replace PASS with your Rcon PW

Write this in your console and it will save to your multiplayer config.

Then you can use the console commands BOTA:X posted above me :)

 

Same rcon commands also work from any rcon proggy made for CoD4, however you simplify the command with skipping the /rcon and only use map mp_strike command as an example in the text box for that rcon program.

 

Hope this helps you on the way and make it more easy to control your server ;)

Link to comment
Share on other sites

Cheers for the tip, I will be using that bind now ;)

 

As for auto-login on connect, it is possible. If you create a shortcut to COD4 Mulitplayer, you can simply add the following to it's "target" line:

 

+connect "ip address:port" +rcon login "password"

 

If you have a server password or private slots with a password, just add +password "password"

 

That shortcut will connect you to the server, and log you in as admin right off the bat. Simply replace "ip address:port" and "password" with your credentials, obviously without the quotation marks.

 

Hope this helps someone!

Edited by Duality
Link to comment
Share on other sites

I must be really ignorant as the bind didnt work for some reason now with the shortcut tip do I put that after "x:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" ?

Link to comment
Share on other sites

However there are ways to do this, and one is to make a bind for it:

/bind X rcon login PASS

:wacko1:

Never bind rcon password directly!!! It's really stupid idea.

 

Secure way:

In cod4/main create a file called rcon.cfg and put there:

rcon login RCON_PW_GOES_HERE

save. Then you can safely make a bind like:

/bind F5 exec rcon.cfg

Link to comment
Share on other sites

:wacko1:

Never bind rcon password directly!!! It's really stupid idea.

 

Secure way:

In cod4/main create a file called rcon.cfg and put there:

rcon login RCON_PW_GOES_HERE

save. Then you can safely make a bind like:

/bind F5 exec rcon.cfg

 

Plausible yes indeed, corrected the first post now :)

Link to comment
Share on other sites

I must be really ignorant as the bind didnt work for some reason now with the shortcut tip do I put that after "x:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" ?

 

Yeah, so your path would look like this:

 

"x:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +connect "ip address:port" +rcon login "password"

 

Obviously remove the quote marks around ip address:port and password.

Link to comment
Share on other sites

As Foxdie said my first version is no go, my bad sry ...

 

Make a file in notepad and name it: login.cfg and write in: rcon login PASS

Then ingame use this commend to log in: /exec login

Then you don't need to write the password in the game console at all.

 

As I told you, there are many approaches to rcon login.

 

PS: Save the file in the main folder in the game directory.

Link to comment
Share on other sites

As Foxdie said my first version is no go, my bad sry ...

 

Make a file in notepad and name it: login.cfg and write in: rcon login PASS

Then ingame use this commend to log in: /exec login

Then you don't need to write the password in the game console at all.

 

As I told you, there are many approaches to rcon login.

 

Im using this now, never thought of doing it this way :)

 

Cheers for the tip ;)

 

Have you guys got any more tips/tricks/binds that you use and would like to share? Im eager to learn :P

Link to comment
Share on other sites

Im using this now, never thought of doing it this way :)

 

Cheers for the tip ;)

 

Have you guys got any more tips/tricks/binds that you use and would like to share? Im eager to learn :P

I must be really dumb I cant get none of these to work I cant even change the target line on my iw3mp.exe I give up ill just look into changing my password to something I can remember

Link to comment
Share on other sites

It is reading the command but in full console I get a weird error it says can not load raw file rcon.cfg then in next line it says can not exec rcon.cfg any idea why?

Link to comment
Share on other sites

It is reading the command but in full console I get a weird error it says can not load raw file rcon.cfg then in next line it says can not exec rcon.cfg any idea why?

 

Cvar not load blabla.cfg means exactly that, it cant find the file and therefore not load.

 

Make the file with the extension: .cfg (not .txt) hole name with extension: login.cfg

Then palce the file in: Path...:\Programfiles\Activision\Call of Duty 4 - Modern Warfare\main

 

Command in the file is: rcon login

 

Good luck

PS: And yes it works, i use it myself and other types as connect commands to some fav. servers etc.

Link to comment
Share on other sites

FINALLY found 2 problems 1.when someone said main i thought they ment just the COD 4 folder ty Hugin for pointing me in direction

 

and 2 u must change where u see save as type u must change it to all files so then you can have it read as cfg file thanks alot guys but I got it to work

Edited by WolfSpirit
Link to comment
Share on other sites

FINALLY found 2 problems 1.when someone said main i thought they ment just the COD 4 folder ty Hugin for pointing me in direction

 

and 2 u must change where u see save as type u must change it to all files so then you can have it read as cfg file thanks alot guys but I got it to work

 

main as in main folder = yes

File extension to .cfg not .txt = yes

 

:lol: anyhoo, glad you got it to work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.