-
Notifications
You must be signed in to change notification settings - Fork 4
Player Management
The Player Management plugin is included with the game and provides a number of administrative chat commands that can be used to manage players.
This plugin uses a minimum admin level of ADMIN_YES, requiring that all players using commands be listed in the admins file.
The commands themselves are hidden from chat, a message is shown to all players indicating the command that has been performed.
All commands use the prefix "admin" by default.
The following commands are available:
Command | Description |
---|---|
slap | Slap a player. Can optionally provide a damage amount (can be negative to add health). Can also specify how many times to slap (all slaps are executed at the same time). |
slay | Kill a player. May not succeed if a damage modifier lowers incoming damage. |
kick | Kicks a player from the server. Can optionally specify a custom ban time (in minutes). Otherwise, uses the cvar mp_kickbantime. |
ban | Bans a player from the server. Can optionally specify a custom ban time (in minutes). Otherwise, uses the cvar mp_bantime. |
teleport | Teleport a player to a given set of coordinates. Coordinates are in the format "x y z", without quotes. If no coordinates are specified, uses the admin's coordinates. You can also specify partial coordinates: admin_teleport 50 uses the admin's coordinates, but sets x to 50. Specifying 'c' instead will make it use the admin's current coordinates for that axis. admin_teleport c c 50 will teleport the player to the admin's coordinates, but at z coordinate 50. |
teleportto | Teleport one player to another. |
sethealth | Sets a player's health. Clamped at minimum 1. |
setarmor | Sets a player's armor. Clamped at minimum 0. |
All commands must provide either a player name or Steam Id as the first argument. Use quotes when dealing with spaces or Steam Ids.
Example:
admin_slap Player 10 2
This will slap the player named Player 2 times, doing 10 damage each time.
This plugin uses a configuration file, located in ./Config, named PlayerManagement.cfg, where '.' is the location of the plugin itself.
The following cfg commands are available:
Name and arguments | Description |
---|---|
prefix | Specifies a custom prefix for commands to use. Must not contain whitespace characters. |
- This plugin uses the chat command manager and thus, requires a console command namespace to be set in the plugin list file.