20. How to use "Aliases" in User.ini Thanks to -=UEO=-Sky_Lord- for this
Aliases[X]=(Command="Y",Alias="Z")
X is the number of the alias.
You can have 40 of them (0-39), the game uses a default of 32 (0-31) aliases by himself, but you can lower it to only 11 without affecting anything by using the list below:
Aliases[0]=(Command="Button bFire | Fire",Alias="Fire")
Aliases[1]=(Command="Button bAltFire | AltFire",Alias="AltFire")
Aliases[2]=(Command="Axis aBaseY Speed=+300.0",Alias="MoveForward")
Aliases[3]=(Command="Axis aBaseY Speed=-300.0",Alias="MoveBackward")
Aliases[4]=(Command="Axis aStrafe Speed=-300.0",Alias="StrafeLeft")
Aliases[5]=(Command="Axis aStrafe Speed=+300.0",Alias="StrafeRight")
Aliases[6]=(Command="Jump | Axis aUp Speed=+300.0",Alias="Jump")
Aliases[7]=(Command="Button bAction | Action",Alias="Action")
Aliases[8]=(Command="Button bLeanRight | LeanRight",Alias="LeanRight")
Aliases[9]=(Command="Button bLeanLeft | LeanLeft",Alias="LeanLeft")
Aliases[10]=(Command="Button bSprint | Sprint",Alias="Sprint")
Y are the commands that are done when the Alias is trigger, it is the same as what goes after the "=" for the normal binds (<key>=Y)
Z is the name of the alias, this how you call him. When you bind a key to Z, the commands Y will happen.
Example:
Aliases[32]=(Command="ReportIn | CommoSendMessage 3",Alias="CoverMeW")
This is Alias number 32.
To call it you do something like:
Enter=CoverMeW
When you press enter this is what will happen:
ReportIn | CommoSendMessage 3
If you need any of it to be clearified more, PM -=UEO=--Sky_Lord- or myself.
21. Admin Commands
Admin spectate [ <playername> | <playerID>] - Spectate a named player. Note that when a round ends, the target you are spectating is lost and you must re-issue the spectate command to go back into spectate mode.
Admin a_switchteam <playername> | <playerID> - Switches the team of the specified player (either from Assault to Defense, or vice-versa.) The team switch happens at the beginning of the next round. This is merely a request to change the team of the named player. Other mitigating factors may prevent this player�s team from actually changing the next round.
Admin a_open <mapname> OR Admin a_map <mapname> OR Admin switch <mapname> - Opens a new map. These commands can all be used interchangeably. mapname: the name of the map to open.
Admin restartmap - Restarts the current map.
Admin forceclass (<playername> | <playerID>) <class> - Immediately changes the class of the specified player. The class is specified using one of the following abbreviations:
r - M16A2
m - Modded M4 without M4 Mods
m4m - Modded M4 with m4 Mods
m4a1auto - Ranger M4A1
ma - Ranger M4A1
ar - M249
g - M16A2/M203
at4 - AT4
s - M82
s24 - M24
spr - Special Purpose Rifle
m9 - M9 Pistol
b - Shotgun
sf - Modded M4A1 (or AK74SU)
ak - AK47
ak74su - AK74
gp -AK w/ launcher
rpg - RPG7
rpk - RPK Light Machine Gun
svd - Dragunov sniper rifle
mos - Mosin-nagant sniper rifle
v - VSS "Vintorez"
sl - Squad Leader
ft - Fireteam Leader
rct - recruit (no weapons)
Admin kickban [ <playername>| <playerID> ] - Kicks the specified player from the server, and then adds his IP address to the banlist file.
Admin kick [ <playername>| <playerID> ] - Kicks the specified player from the server.
Admin say <message> - Uses the chat to message players.
Admin message <message> - This is similar to admin say, except that the message is delivered in big text to the middle of the screen. Everyone receives the message.
Admin mute <playername> | <player ID> | all - Mutes the chat specified player. This is a server mute and no players can see what he types. This doesn't affect other Admins or SuperUsers. playername | player ID: mutes the specified player. all: mutes everyone on the server. Using it again unmutes the specified player or all.
Admin deathmessages 1 | on | 0 | off - Turns death and damage messages off for all players. 1/on: Turns messages on. 0/off: Turns messages off. When changing this setting via the console, your preference is automatically saved in your ArmyOps.ini file. However, if you wish to change the ArmyOps.ini file directly, the variable to look for is bDeathMessages.
Admin score 1 | on | 0 | off | round | match - Turns the scoreboard on and off. Scoreboard can be displayed at the end of a round, end of a match, or never. Note that certain UI changes mean that even with the scoreboard disabled, players can still (currently) switch to the scoreboard from the weapon selection screen. 1/on: Turns the scoreboard on. 0/off: Turns the scoreboard off. round: Shows scoreboard at end of round only. match: Shows scoreboard at end of match only. When score mode �round� or �match� are specified, the score will be displayed at the appropriate time. The client can then hit ESC to close the score screen, or can wait until the beginning of the next round at which time the score screen will automatically be closed. When changing this setting via the console, your preference is automatically saved in your ArmyOps.ini file. However, if you wish to change the ArmyOps.ini file directly, the variable to look for is ScoreMode and the possible values are: SSM_On, SSM_Off, SSM_Round, and SSM_Match.
Admin motd self | all | <text> - Sets or displays the message of the day. self: displays message of the day to admin only. all: Displays message of the day to all players. text: The text string to set as the message of the day. We currently have 4 MOTD lines that can be set in ArmyOps.ini. These lines are displayed when a client logs into a server (if they are not blank.) Using the admin motd command to set the MOTD only sets the first line of the MOTD (in the ini file, it�s called MOTDLine1). Similarly, when the self or all parameters are specified, only MOTDLine1 will be displayed. All four lines will still be displayed when a client logs into a server for the first time (provided they aren�t blank.)
Admin roekicktimer 1 | on | 0 | off - Turns on or off the ROE kick timer at the beginning of the round. 1/on: Turns the ROE kick timer on. 0/off: Turns the ROE kick timer off. Note that entering this command has an immediate effect (i.e. the server doesn�t wait until the start of the next round to use the new value). When changing this setting via the console, your preference is automatically saved in your ArmyOps.ini file. However, if you wish to change the ArmyOps.ini file directly, the variable to look for is bEnableROEKickTimer.
Admin roekick 1 | on | 0 | off - Turns on or off the ROE kick functionality for players exceeding max ROE. 1/on: Turns on ROE kick. 0/off: Turns off ROE kick. The effect of this command is immediate. When changing this setting via the console, your preference is automatically saved in your ArmyOps.ini file. However, if you wish to change the ArmyOps.ini file directly, the variable to look for is bEnableROEKick.
Admin roekickdead 1 | on | 0 | off - If enabled, instead of a player being kicked for an ROE penalty, they will be killed. 1/on: Turns ROE kick dead feature on. 0/off: Turns ROE kick dead feature off. The damage type used to kill the offending player is suicide, so to other players it may seem like the culprit killed himself. However, the player gaining the ROE sees a specific message telling him he is being killed due to ROE. When changing this setting via the console, your preference is automatically saved in your ArmyOps.ini file. However, if you wish to change the ArmyOps.ini file directly, the variable to look for is bEnableROEKickDeath.
Admin pb_sv_ enable | disable - Enable enables punkbuster for the server, disable disables punkbuster for the server.
Admin pb_sv_gameauth 0/1 - Enables or disables authorization for a server. 0 stops pb from kicking even with auth off.
22. Punk Buster Commands
Tasks
pb_sv_task <start-seconds> <optional-run-every-seconds> - This allows server admins to set a task starting from a specified time in seconds and then running again every x seconds there after. If no re-run value is specified then the task is only run once. This feature is not limited to PB functions and can run in-game functions as well. You may use more than one task if you like. Example:
pb_sv_task 10 300 "say ^3Visit us at
www.yourwebsite.com"
pb_sv_task 15 305 "say ^5Email server admins:
[email protected]"
pb_sv_task 700 "pb_sv_bindsrch com_maxfps"
pb_sv_task 700 "pb_sv_bindsrch m_pitch"
This will spam your two messages on screen and re run them at the specified times. The last two will run a bind-cvar check once only.
pb_sv_tlist - Shows what tasks you have running and shows you what slot number each task is assigned to.
pb_sv_taskdel <slot#> - Deletes a task in your list of tasks by slot number. This is useful in keeping multiple tasks from piling up and repeating themselves. In your pbsv.cfg you should insert this command right before your list of tasks to make sure you start off clear. Example:
pb_sv_TaskDel 1
pb_sv_TaskDel 2
pb_sv_TaskDel 3
pb_sv_TaskDel 4
Name Management
pb_sv_badname <grace-seconds> <filter> - This command will allow you to filter out certain text in names, then give the player x seconds to change the name before being removed from the server. Here are some examples:
pb_sv_badname 30
www.
pb_sv_badname 30 .com
pb_sv_badname 30 UnnamedPlayer
pb_sv_badname 30 ogc
pb_sv_badname 30 noskill
pb_sv_badname 30 noname
The first two lines prevent people from using your severs to advertise web sites. The others are just suggested filters and can be adjusted to your preferences. They are all set to give the player 30 seconds of warnings before they are removed from the server.
pb_sv_badnamelist - Lists all the bad names in your check list and shows you each lines assigned slot number.
pb_sv_badnameDel <slot#> - Deletes a name in your list of bad names by slot number. This is useful in keeping multiple bad names from piling up and repeating themselves. In your pbsv.cfg you should insert this command right before your list of bad names to make sure you start off clear.
pb_sv_badnameDel 1
pb_sv_badnameDel 2
pb_sv_badnameDel 3
pb_sv_badnameDel 4
pb_sv_badnameDel 5
pb_sv_badnameDel 6
pb_sv_badname 30
www.
pb_sv_badname 30 .com
pb_sv_badname 30 UnnamedPlayer
pb_sv_badname 30 ogc
pb_sv_badname 30 noskill
pb_sv_badname 30 noname
pb_sv_changePeriod 10 - Amount of seconds allowed between name changes, prevents name spamming.
pb_sv_changeMax 5 - Number of total allowed name changes per session.
pb_sv_dupNameGrace 20 - Amount of time (in seconds) that a duplicate name has to be changed before that player is removed from the server. This ensures that all players on the server have a unique name.
pb_sv_extChar 0 - Control of extended characters in names (characters and symbols that can not be produced from a single key stroke.) 0 to disallow such names. 1 to allow these names.
pb_sv_emptyname 0 - Control the option of a an empty name (no name at all). 0 will not allow an empty string to be returned for a name value. 1 will allow an empty string.
pb_sv_minName 1 - Dictates the minimum amount of actual characters a players name must have to be allowed on the server. This will double check the above pb_sv_emptyname 0 to make sure a player doesn't enter ^7^7 as a name (which satisfies the pb_sv_emptyname 0 but still returns an empty string to the console.) Set this to one to make sure that a player has at least one standard character in their name.