Power Points

From PunksBusted

Jump to: navigation, search

Setting up PunkBuster Power Points on your server is very simple to do and will allow people you choose to run any command that you choose on your server. There are only a few commands which you need to set, then add some PB_Rcon commands for others to use and your off. The number of points can vary between 0 and 100 and I'll try and explain their setup and use. There are a couple of pitfalls which you should avoid at all costs.

Contents

Default PB Power Points

This is the number of Power Points that random people receive - that is, people who have not been specifically given power points by you.

The command to set this is: PB_SV_PowerDef XX, where XX is a number between 0 and 100

Number of Power Points Required by the Public to Kick a Player

This is a cumulative total of all the players on your server. Each player can only apply their Power Points to 1 person at any time and when one or more people apply a combined total number of points to a person, that person is kicked from the server. For example. If the Default PB Power Points (above) is set to 10 and the number of power points required to kick a person is 50 then 5 people must apply their 10 power points to a person before they are kicked.

The command to set this is: PB_SV_PowerMin XX, where XX is a number between 0 and 100

Duration of a PB Power Points Kick

When a player is kicked by using the Power Point system they are banned for a user set duration (in minutes).

The command to set this is: PB_SV_PowerKickLen XX, where XX is a number between 0 and 60 (minutes)

Now you have set the basic parameters, there is little left to do but add the rcon commands you want others to use.

PB_Rcon

This allows other people to use rcon commands on your server without needing to know the Rcon Password, but there are a couple of things you need to avoid.

The command to set this is: PB_SV_RCon [min power points] [command prefix]

For example to allow any player with 20 power points or more to change map, the command to allow this is: PB_SV_RCon 20 map

When this command is added a player with 20 or more power points can type (in his own console) /PB_RCon map mp_depot and the server will anounce the PBRcon command then change maps.

Similarly, PB_SV_RCon 20 map_rotate will allow any player with 20 or more points to type /PB_RCon map_rotate into their console and the server will change to the next map on the rotation.

ANY command can be setup like this, but BE SPECIFIC in your allowed command list. Using the command PB_SV_RCon 20 g_ will allow any player with 20 points or more to use any command that begins with g_

Similarly allowing PB_SV_RCon 20 set to slip into your allowed list will allow any non-PB command to be run on your server by people with 20 points or more.

Similarly again, allowing PB_SV_RCon 20 PB_SV to slip into your allowed list will allow any PB command to be run on your server by people with 20 points or more.

Avoid all this by BEING SPECIFIC in your list of commands.


Allocating Power Points

Now you have setup the commands you want other people to use, give your mates enough Power Points to use them. There are 2 ways to do this. Set the power points by Slot number (player must be in server) or by GUID (player can be in server or not)

The command to set by slot is: PB_SV_Power [slot #] XX, where XX is any number between 0 and 100 and [slot #] is obtained from the /PB_PLIST command. Its important you dont use the /status command for the slot number as they are different to the PB slot numbers.

The command to set by GUID is: PB_SV_PowerGuid [GUID] XX [Player_Name(optional)], where [GUID] is the 32 character PB GUID of the player (can be found in the logs), XX is any number between 0 and 100 and [Player_Name(optional)] is the player name. The player name is only for your reference and is not used by PB when setting the points - hence it can be anything, even different from the actual player name.

Check the list of RCon commands that you are allowing others to use

I've since also discovered that it is possible to have a blank entry in your RCon List. I think it occurred because of blank lines in the PBPower.dat file. If you have this then any person with any number of PB Power Points over zero can use ANY command on your server. This one is a MAJOR security hole, so when you change the list of commands, check it!

The command to do this is: PB_SV_RList


You can see players on your PB Power Points list in the file PBPower.dat on your server (PB_SV_PowerList will list them to console, but the list can grow very large) and the list of stored commands emPowered people are allowed to use can be found in PBRcon.dat.

An Admin should also note that you can not remove a single entry in your PB Rcon list. If a mistake is made its safest to delete the PBRCON.DAT file from the server and start again. But other ways to correct an entry is to re-enter the command and to manually edit the PBRcon.dat file to correct the error.

Personal tools