PDA

View Full Version : How do i get a ban or tempban log?


Goucho
11-29-2009, 05:40 AM
HI there we had a member saying they were banned from one of our servers but we could not find any trace :(

Is there a command to put on server.cfg to make a ban and temp ban log for us to check?

Also how do i check for kicks and bans made by members with admin powers?

Diva
11-29-2009, 10:27 AM
try this

/unbanUser [player name]

Goucho
11-29-2009, 06:24 PM
Is there a way to get the server to write a banlist as a guy is banned?

yvangkwheng
11-29-2009, 10:02 PM
i suppose u cant do that if u got banned

The_Comfy_Chair
11-30-2009, 01:22 PM
Try this first:

/cmdlist - This will show a complete list of commands available.

and for info on the particular user:
/dumpuser [player name] - This will give information about the player.

...IF it was a PB ban then try this one....
PB_SV_BanList [optional_search_text]
Displays the list of bans in the console, including kicks with a temporary ban; if the [optional_search_text] parameter is specified, then only bans/kicks that include the search text are listed (useful for searching for a specific name / guid).

...and finally... from this site in another discussion.... http://www.fpsadmin.com/forum/showthread.php?t=13516
" 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!” "


P.S. Just FYI...
here's a partial list of typical RCON commands - shamelessly ripped from here:
http://daevius.com/archive/call-of-duty-4/commands


-------------------snip---------------------------

Console commands
The Call of Duty 4 console commands are very similair to the previous CoD editions.

You can use the commands by pressing '~' while you are in-game. A small bar will appear on the top of your screen. Now you can enter one of the following commands.
If the console does not display when you press '~', you need to enable it. Do this by going to the game's main menu -> Options -> Game Options... -> Enable Console should say 'Yes'.

PS: For a larger console window (needed for /status for example) you need to press 'Shift + ~'. In this window the command output will appear, you can scroll up and down with the scroll button on your mouse.

Commands
/serverinfo - This command shows the server settings and configurations.

/map [map name] - This will load the given map. Map names can be found in the map overview article here.

/map_rotate - This will load the next map of the rotation. This is set in the 'sv_maprotation' file on your server.

/map_restart - This will restart the current map.

/fast_restart - This will restart the current map just like /map_restart but is much faster as it will not load the map again. It will just restart the map.

/status - This shows information about the connected players. This includes the client ID, score, ping, GUID, name and IP address. The ID and name can be used for the following commands.

/tell [player id] - This will display a message to a specific player. The ID is given with the /status command.

/clientkick [player id] - This will kick a player according to its ID (given with the /status command).

/kick [player name] - This will do the same as the /clientkick command, but this command requires the player's name. However, some names are very difficult to enter (with colour codes etc.), thats why the /clientkick commands is easier in use. You can use 'all' as player name, this will kick all players from the server.

/onlykick [player name] - Does the same as /kick as far as I know.

/banClient [player id] - This command will ban a player according to its ID. The player's GUID will be added to ban.txt.

/banUser [player name] - This command does the same as the /banclient command. However, this requires you to fill in the player's name, it is therefore advised to use the /banclient command (names can be long or contain colour codes).

/tempBanClient [player id] - This will temporary ban a player using the player's ID. The length of a temporary ban can be changed in the server configuration file.

/tempBanUser [player name] - This will temporary ban a player using the player's name.

/unbanUser [player name] - This will unban a user according to the player's name. If the player's name appears more than once in ban.txt, you can edit the file and remove the banned player manually.

/dumpuser [player name] - This will give information about the player.

/killserver - As the name says, it will shut your server down.

RCON usage
It is very likely that you are not playing at the same location (IP address) as your server is. Thats where we use RCON (= remote control) commands for. Using RCON is very easy, just add '/rcon ' in front of the commands above (removing the '/' of those commands). But before you can use RCON, you will have to login:

/rcon login [password] - Fill in the password of the server and you can use RCON commands.

Examples of RCON commands:

/rcon map mp_pipeline
/rcon status
/rcon banclient 5

More (useless) commands
/serverstatus - This will give you information about the server settings and a quick list of online players.

/serverinfo - This will give you some diversified about IW settings on your server and some useless information.

/systeminfo - This will give you a list of the settings your server has.

/clientinfo - This will give you information about the yourself as client.

/showip - This will provide your IP address.

/cmdlist - This will show a complete list of commands available.

Good luck with keeping your server clean and as you wish ;)



...and... some nice PB stuff ripped from here:
http://www.inx-gaming.com/forum/useful-cod4-rcon-commands-t11072/index.html?


---------snip--------------------

Some commands are standalone and others may require or accept additional parameters. For example, the command "PB_SV_VER" is standalone. The command "PB_SV_LOAD" takes one parameter (a filename), typing in "PB_SV_LOAD ABC.CFG" tells PunkBuster to load the PB configuration file called "ABC.CFG".

Most Server Admins remotely control their game servers via the admin facility built into the game. While the PunkBuster Server is also addressed this way, due to limitations of the game engine no PB Server command will display a response.

Note that every PB Server Command and Setting must be entered while logged in as administrator, and "admin" must be in front of every command so that it is executed on the server.

Most Server Admins will not use the PB_SV_LOAD command, but rather will use the game-specific exec command so that configuration files can be loaded that have both Game and PunkBuster commands and settings changes. Configuration files loaded by the PB_SV_LOAD command may contain only PunkBuster related commands and settings.

PunkBuster settings, sometimes also called variables, hold numbers or textual information that PunkBuster uses while it is operating. Changing PunkBuster settings will affect the way PunkBuster runs in specific ways. All PunkBuster settings start out with default values that are the recommended values for most users. For example, "PB_SV_AUTOSS" can be set either to 1 or 0. To set it to 1, type in "rcon PB_SV_AUTOSS 1". Trying to set a PunkBuster setting outside of its allowable range will cause PunkBuster to give the setting the closest allowable value to what was originally specified.

Listed below (in alphabetical order) is a list of PunkBuster Commands and Settings along with a general description and usage instructions where necessary.

PB_SV_AutoUpdBan [0/1]
Set to 1 (defaults to 0) if you want PB to automatically update the permanent ban file (pbbans.dat) after each change to the banlist in memory

PB_SV_BadName [grace_seconds] [text_filter]
Adds a bad name to the list of bad names for the server to disallow in player names

PB_SV_BadNameDel [slot #]
Deletes a bad name from the list of bad names

PB_SV_BadNameList
Displays the current bad name list for the Game Server; see the section dealing with the Player Name Management Facility

PB_SV_Ban [name or slot #] [displayed_reason] | [optional_private_reason]
Removes a player from the game and permanently bans that player from the server based on the player's guid (based on the cdkey); the ban is logged and also written to the pbbans.dat file in the pb folder

PB_SV_BanEmpty
Empties the current ban list stored in memory

PB_SV_BanGuid [guid] [player_name] [IP_Address] [reason]
Adds a guid directly to PB's permanent ban list; if the player_name or IP_Address are not known, we recommend using "???"

PB_SV_BanList [optional_search_text]
Displays the list of bans in the console, including kicks with a temporary ban; if the [optional_search_text] parameter is specified, then only bans/kicks that include the search text are listed (useful for searching for a specific name / guid).

PB_SV_BanLoad [optional filename]
Loads a PB Ban List from the specified file; if no filename specified, then pbbans.dat is loaded

PB_SV_BanMask [IP Address / Subnet Mask]
Permanently bans players from joining the server from the specified IP Address / Subnet Mask; for example: issuing PB_SV_BanMask "12.34." will cause PB to deny access to all players trying to join from an IP Address that begins with "12.34."; These bans are written to the pbbans.dat file just like bans issued with the PB_SV_Ban command

PB_SV_Disable
Disables the PunkBuster Server Software - the disabling does not take effect until the game server is exited and restarted

PB_SV_Enable
Enables the PunkBuster Server Software

PB_SV_GetSs [player_name_or_slot#]
Sends a request to all applicable connected players asking for a screen shot to be captured and sent to the PB Server; to specify a player name or substring (as opposed to slot #), surround the text with double-quote marks

PB_SV_IPGuard [IP Address]
The PunkBuster Server automatically adds suspicious IP Addresses to the IP Guard list when players join with a non-functioning PunkBuster client; Players joining from a guarded IP with an old version of PunkBuster are removed from the server; The PB_SV_IPGuard command allows admins to add their own suspicious IP Addresses to the list

PB_SV_Kick [name or slot #] [minutes] [displayed_reason] | [optional_private_reason]
Removes a player from the game and won't let the player rejoin until specified [minutes] has passed or until the server is restarted, whichever comes first - kicks are not written to the pbbans.dat file but they are logged and will show up in the output from the pb_sv_banlist command

PB_SV_Load [File Name]
Loads the specified PunkBuster configuration file which can contain PunkBuster commands and/or setting changes

PB_SV_NameLock [GUID or partial match] [Name to Lock]
Causes the PunkBuster Server to kick players wearing a locked name unless the player's GUID contains the specified GUID or partial match associated with a locked name; NameLocks are not stored to disk automatically so Admins should add these to the pbsvuser.cfg file in order to have NameLocks extend to future server sessions

PB_SV_NameLockEmpty
Empties the list of NameLocks in memory

PB_SV_NameLockList
Displays the list of NameLocks to the server console

PB_SV_NewLog
Causes PunkBuster to close the current PunkBuster log and open a new one

PB_SV_PList
Displays a list of connected players and their current status

PB_SV_Power [slot #] [power rating]
Adds player in specified slot # to the locally stored PB Player Power database with the specified power rating.

PB_SV_PowerList [filter]
Displays a list of Power Players in the database; if filter is specified, then only entries where the filter is either in the guid and/or name fields are displayed

PB_SV_PowerPoints [power slot #] [points]
Changes the number of Power Points assigned to a Power Player in the database; use the PB_SV_PowerList command to get the power slot #

PB_SV_ProtectName [Unique ID] [Registered Name]
Protects the specified PunkBuster Registered Name on the local server so that players who wear the protected name without having the correct Registration Credentials will be removed from the server

PB_SV_ProtectTag [Unique ID] [Registered Tag]
Protects the specified PunkBuster Registered Tag on the local server so that players who wear the protected tag without having the correct Registration Credentials will be removed from the server

PB_SV_ReBan [slot #]
Rebans a player who has been mistakenly Unbanned with the pb_sv_unban command; use pb_sv_updbanfile to update the permanent ban file after using this command

PB_SV_Task [X] [Y] [command]
Adds a task to PB's Task List; The Task will be executed X seconds after entry and every Y seconds thereafter; use -1 for Y if a one-time task is desired; this can be used to execute game server commands as well as PB commands

PB_SV_TaskDel [task slot #]
Removes the task from PB's Task List that corresponds to the specified task slot #

PB_SV_TaskEmpty
Empties the list of Tasks in memory

PB_SV_TList
Displays a list of PB Tasks along with a task slot # for each task

PB_SV_UnBan [slot #]
Unbans a player from the ban list stored in memory; use pb_sv_updbanfile to update the permanent ban file after using this command

PB_SV_UnBanGuid [guid]
Unbans a guid from the ban list stored in memory; use pb_sv_updbanfile to update the permanent ban file after using this command

PB_SV_Update
Forces the PB Server to attempt a PB software update even if no players are currently connected

PB_SV_UpdBanFile [optional filename]
Updates the specified ban file (pbbans.dat is used if none specified) with regard to recent unbans/rebans

PB_SV_Ver
Displays the currently running version of the PunkBuster Server software

PB_SV_WriteCfg
Writes the current values of the PunkBuster Server settings to the local hard drive (creating or overwriting a file called pbsv.cfg) in such a way that they will be loaded automatically the next time the PunkBuster Server starts; server admins who wish to manage multiple config files for different situations will usually not use this command at all

Mike Nomad
12-01-2009, 05:45 AM
Is there a way to get the server to write a banlist as a guy is banned?


It does..... look in the mods folder for ban.txt

or.....

If banned via PBUcon or PB, look in the PB folder and read pbbans.dat

Goucho
12-01-2009, 03:31 PM
Thnx very much guys :)

Turns out the guy was pb kicked for 1 minute but told me he was banned lmao.