Difference between revisions of "Admin Commands (SourceMod)"
m |
|||
Line 26: | Line 26: | ||
=Basic Commands= | =Basic Commands= | ||
− | These commands | + | These are basic commands found in plugins that have been deemed safe for [[War_Mode_(SourceMod)|War Mode]]; they provide simple functionality for administering your server. |
:{| | :{| | ||
|- class="t2th" | |- class="t2th" | ||
| Command | | Command | ||
+ | | Plugin | ||
| Format | | Format | ||
| Access | | Access | ||
| Description | | Description | ||
+ | |- class="t2td" | ||
+ | | sm_addban | ||
+ | | basebans | ||
+ | | <time> <steamid> [reason] | ||
+ | | rcon | ||
+ | | Adds a Steam ID to Source's ban list. | ||
|- class="t2td" | |- class="t2td" | ||
| sm_admin | | sm_admin | ||
+ | | adminmenu | ||
| | | | ||
| admin | | admin | ||
| Displays the [[Admin Menu (SourceMod)|admin menu]]. | | Displays the [[Admin Menu (SourceMod)|admin menu]]. | ||
+ | |- class="t2td" | ||
+ | | sm_ban | ||
+ | | basebans | ||
+ | | <nowiki><#userid|name> <minutes|0> </nowiki>[reason] | ||
+ | | ban | ||
+ | | Bans a client. | ||
+ | |- class="t2td" | ||
+ | | sm_banip | ||
+ | | basebans | ||
+ | | <time> <ip|#userid|name> [reason] | ||
+ | | rcon for ip, ban for player | ||
+ | | Adds an IP address to Source's ban list. | ||
|- class="t2td" | |- class="t2td" | ||
| sm_cancelvote | | sm_cancelvote | ||
+ | | basecommands | ||
| | | | ||
| vote | | vote | ||
Line 46: | Line 67: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_cvar | | sm_cvar | ||
+ | | basecommands | ||
| <cvar> [value] | | <cvar> [value] | ||
| cvar | | cvar | ||
Line 51: | Line 73: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_execcfg | | sm_execcfg | ||
+ | | basecommands | ||
| <filename> | | <filename> | ||
| config | | config | ||
Line 56: | Line 79: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_help | | sm_help | ||
+ | | adminhelp | ||
| [page|search] | | [page|search] | ||
| admin | | admin | ||
Line 61: | Line 85: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_kick | | sm_kick | ||
+ | | basecommands | ||
| <nowiki><#userid|name></nowiki> [reason] | | <nowiki><#userid|name></nowiki> [reason] | ||
| kick | | kick | ||
Line 66: | Line 91: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_map | | sm_map | ||
+ | | basecommands | ||
| <map> | | <map> | ||
| map | | map | ||
Line 71: | Line 97: | ||
|- class="t2td" | |- class="t2td" | ||
| sm_rcon | | sm_rcon | ||
+ | | basecommands | ||
| <argstring> | | <argstring> | ||
| rcon | | rcon | ||
− | | Executes the argument string via rcon. | + | | Executes the argument string via rcon. Due to Source limitations, you cannot see any RCON output. |
|- class="t2td" | |- class="t2td" | ||
| sm_reloadadmins | | sm_reloadadmins | ||
+ | | basecommands | ||
| | | | ||
| config | | config | ||
| Refreshes the Admin cache from all sources. | | Refreshes the Admin cache from all sources. | ||
+ | |- class="t2td" | ||
+ | | sm_unban | ||
+ | | basebans | ||
+ | | <steamid> | ||
+ | | unban | ||
+ | | Unbans a Steam ID. | ||
|- class="t2td" | |- class="t2td" | ||
| sm_who | | sm_who | ||
+ | | basecommands | ||
| <nowiki>[#userid|name]</nowiki> | | <nowiki>[#userid|name]</nowiki> | ||
| admin | | admin | ||
| Lists all users and their access rights, or a specific user's access rights. | | Lists all users and their access rights, or a specific user's access rights. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
[[Category:SourceMod Documentation]] | [[Category:SourceMod Documentation]] |
Revision as of 11:01, 16 December 2007
This page lists all of the major admin commands in SourceMod.
Chat Triggers: Remember that commands do not have to be entered through the console; they can be entered via chat triggers. For example, saying "!ban bail" in chat will execute the same command as "sm_ban" and forward the output to chat. You can also use "/" instead of "!" to suppress your command from being shown to users.
Contents
How to Target
General targets:
- name - Exact name match, or partial name match (if the partial string is unique).
- #userid - If userid is numeric, the player will be targeted by their userid (found via the "users" command).
- @all - All players (available on most commands).
- @bots - All bots (available on most commands).
- @alive - All alive players (available on most commands that accept alive players).
- @dead - All dead players (available on most commands that accept dead players).
- @humans - All non-bot players (available on most commands).
- @aim - Current player the admin is directly aiming at.
Counter-Strike only:
- @ct or @cts - All Counter-Terrorists
- @t or @ts - All Terrorists
Basic Commands
These are basic commands found in plugins that have been deemed safe for War Mode; they provide simple functionality for administering your server.
Command Plugin Format Access Description sm_addban basebans rcon Adds a Steam ID to Source's ban list. sm_admin adminmenu admin Displays the admin menu. sm_ban basebans <#userid|name> <minutes|0> [reason] ban Bans a client. sm_banip basebans #userid|name> [reason] rcon for ip, ban for player Adds an IP address to Source's ban list. sm_cancelvote basecommands vote Cancels any vote in progress. sm_cvar basecommands <cvar> [value] cvar Retrieves or changes a cvar value. Protected cvars can only be accessed with rcon access, and sv_cheats can only be accessed with cheat access. sm_execcfg basecommands <filename> config Executes a config file (path not needed, but extension is). sm_help adminhelp search] admin Lists all admin commands. Output is paginated and a page number can be specified. Alternately, a search term can be specified to search for a specific command. sm_kick basecommands <#userid|name> [reason] kick Kicks a player. sm_map basecommands <map> map Changes the current map. sm_rcon basecommands <argstring> rcon Executes the argument string via rcon. Due to Source limitations, you cannot see any RCON output. sm_reloadadmins basecommands config Refreshes the Admin cache from all sources. sm_unban basebans <steamid> unban Unbans a Steam ID. sm_who basecommands [#userid|name] admin Lists all users and their access rights, or a specific user's access rights.