[How To] Set Up PB_RCON
There are several ways to kick a nuisance player from the server.
1. Vote kick (this is disabled on most servers due to a previous exploit with hackers).
2. PB Power vote (you can use this system on ANY PunkBuster enabled server).
3. Direct kick/temp ban command (requires /RCON or /PB_RCON access).
How?
1. Standard Public Voting;
Press escape and if voting option is not greyed out select the vote option.
However this is usually VERY temporary and as mentioned it can also be used against the server Admin so it IS best to disable it.
How to disable standard public voting method [RECOMMENDED!] (ftp access required):
Insert these into your servers config.cfg file, save, upload and restart:
set g_allowvote "0"
set scr_allow_vote "0"
2. PB Power Voting;
A lot of players don't even know about this, but you can still vote players off even when voting is turned off.
There is no guarantee that they will get kicked but this is also down to how knowledgable the other players on the server are aswell.
Just like standard public voting, if noone else votes nothing happens (unless you have set up a PB POWER SYSTEM as described in option 3 below).
It requires you to type 2 commands into the console;
The first command is to get the SLOT NUMBER of the player you want to vote kick;
/pb_plist
This will list in blue all the current players on the server (you will probably have to maximise the console to see the text as public chat spam will make it scroll off screen).
The second command is the kick vote itself (replace slotnumber with number aquired from the first command);
/pb_kick slotnumber
Now you have to encourage everyone to "/pb_kick slotnumber".
If the required amount of kick votes are cast (this can be lowered - see below), the player will be kicked for the specified duration.
I think the default vote amount required to kick someone with this method is 10..which is too many votes needed as most players just don't give a damn enough to type in a command.
On our server I reduced this to 5 with further steps to make it easier to kick annoying players.
Here are the settings to tweak this method for your server (these are located in your cod4/pb/pbsv.cfg file);
pb_sv_PowerMin 5 //This is the amount of votes needed to get someone kicked off the server.
pb_sv_PowerDef 1 //This is the default vote points each public player gets (do not change this).
pb_sv_PowerKickLen 10 //This is the amount of time they are kicked for in minutes (default=5)]
Edit, save, upload and restart (/pb_sv_restart) for changes to take effect!
3. Server PBRCON setup;
This is the safest method to have setup for server Admins and also means you can assign a little power to your clan members so theres always someone on who has kicking (or map/game mode changing) power.
**The PB POWER system is built into PunkBuster and is designed so you can give more authority and control to certain players on your server without giving out your servers /RCON Admin password or needing to setup seperate RCON clients etc.
First there are some additional steps you will have to setup in your server config.cfg file;
3.1. Setup a /rcon password (located in cod4/main/config.cfg file);
// Password Settings
set rcon_password "YourPassword"
To login with the server you will need to type this command into console:
/rcon login password
There is no successful RCON login confirmation but if you do not enter the RCON password (or enter it incorrectly) and attempt to use server commands you will see a console messsage such as 'incorrect password/login'.
Restart Punkbuster (/pb_sv_restart) after making changes to your Punkbuster system for them to take effect properly.
In some cases a Server Restart (via your GSP control panel or ask your GSP support to do it) may be required if the changes do not take effect.
Do not give this password out to anyone except trusted clan members who you assign to be server admins, actually you don't even need to give them this password as we'll be assigning them some Admin power anyway.
!!!!TAKE NOTE that you can type the password into chat by mistake if not careful!!!(VERY BAD)
!!!!This is why we are setting up PBRCON access!!!!!
Then Power Players may use PB_RCON commands that have been setup without entering or knowing the /RCON password.
NOTE: If you are typing commands into CONSOLE ingame, remember to add a / BEFORE ANY COMMAND (/pb_sv_powerguid).
When entering commands into a CONFIG file, you do not need to add the / at start of commands, in fact a double // at the start of a line tells the system to ignore that line (used for notes).
3.2. Create an empty file called pbpower (save as .dat not .txt) and upload it to your cod4/pb directory.
3.3. Create a file called powerguid (save as .cfg not .txt) and add the following code to it;
//****************************
//PB POWER CONFIG SETUP
//****************************
pb_sv_task 05 00 say ^1PBPOWER SETUP!
//Squad Members
//***************
//
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 99 "[tags]name"
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 99 "[tags]name"
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 50 "[tags]name"
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 50 "[tags]name"
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 50 "[tags]name"
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 50 "[tags]name
pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 50 "[tags]name"
//Trial Recruits
//*****************
//
//pb_sv_powerguid xxxxxxxxxxxxxxxxxxxxxxxxxx 10 "[tags]name"
//Squad Guests
//***************
//None yet...
3.4. Replace the 'xxxxxxxxxxxxxxxxxxxxx' parts with your clan members GUIDS (/pb_myguid).
3.5. Replace the 99 or 50 with the amount of power you wish to give that player.
I recommend giving regular clan members 50, trustable Junior Server Admins 75 and the main trustable Admins 99 (don't give anyone 100).
3.6. Replace "[tags]name" with your members name (quotes must remain, tags are optional).
Example "[X!N]hellsonix"
or "hellsonix"
Both of the above are fine (as long as they are within quotes), they are mainly just a reference for the GUID provided which is what is checked.
A whole line will look like:
pb_sv_powerguid 123456789010111213141516 99 "[X!N]hellsonix"
3.7. Edit, save, upload (cod4/main directory).
3.8. Now execute the file using;
/rcon login password
This is just to login if you are not already logged in.
/rcon exec powerguid
You should see a 'PB POWER SETUP!' confirmation in chat.
3.9. Always Restart Punkbuster (/pb_sv_restart) for new changes to take effect!
To check wether the changes have taken effect or not you need to have the players you just gave power to actually present on the server.
However first we need to EXPAND THE CONSOLE to see all the relevant info.
Do this by holding SHIFT and pressing the CONSOLE key.
Now use the PAGE DOWN key until you reach the end of the server/console message spam.
Now type the following command:
/pb_power
What you should see is:
In the image above, my self assigned power status is 99 whereas a normal player will have the default value of 1 (or whatever value you assigned the default value (via /pb_sv_PowerDef 1 )..usually best left at 1 though).
If all is well and you see the power value you assigned appearing correctly, move on to Step 4.
Else you may want to try a Punkbuster restart and failing that a server restart (via your GSP control panel or you may have to ask your GSP support to do it).
4. Now the permissions are setup, you just need to define which commands can be used by which power levels;
This is only an explanation of adding commands individually which is a longer process than batch adding commands via a config file.
Skip to step 4.1 if you don't want to install the commands individually.
NOTE: You can add these at any time via the console using;
/rcon pb_sv_rcon xx [command]
Replace xx with the power level required to use the [command] you want.
Example:
/rcon pb_sv_rcon 50 map_restart
This gives all players with 50 power points level the ability to use the command:
/PB_RCON map_restart
No login required, the system recognises each player by their GUID and how much power they have.
4.1.
Here we are going to use a method that will add a batch of commands simultaneously rather than having to add each one seperately.
This is good to have backed up and should you reset or reinstall your game server and have to setup again, you already have a quick way of adding a batch of server commands ready to go.
Obviously add or edit whichever commands you wish to use to your liking from the ones provideed below.
Create a file called pbrcon (save as .dat not .txt) then save & upload it to your cod4/pb directory.