a5b22498ce
This change makes it so /kick, /ban, and /map open the already created methods for displaying their menus when there are no args. The reason for the feature is to take advantage of menus that already exist and to make the commands easier to use. The client == 0 check prevents them from opening if it was ran via rcon, sm_rcon, or server command. Client auth is also checked because its a registered admin command. Usage params will display if client == 0 and args < min For example, a moderator wants to change a map, instead of running through the admin menu, they can instead type just /map to display available maps and choose one. If a mod wants to quickly ban or kick someone without having to either run through the admin menu or type it out, they could then type the corresponding commands with no args to open the menus. |
||
---|---|---|
.github | ||
bridge/include | ||
configs | ||
core | ||
editor | ||
extensions | ||
gamedata | ||
loader | ||
plugins | ||
public | ||
sourcepawn@daca6d3326 | ||
tools | ||
translations | ||
versionlib | ||
.arcconfig | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
AMBuildScript | ||
changelog.txt | ||
configure.py | ||
product.version | ||
pushbuild.txt | ||
README.md |
SourceMod
General
- SourceMod website: Source Engine scripting and server administration
- Forum: Discussion forum including plugin/extension development
- General documentation: Miscellaneous information about SourceMod
- Stable builds: The latest stable SourceMod releases
- Dev builds: Builds of recent development versions
Development
- Issue tracker: Issues that require back and forth communication
- Building SourceMod: Instructions on how to build SourceMod itself using AMBuild
- SourcePawn scripting: SourcePawn examples and introduction to the language
- SourceMod plugin API: Online SourceMod plugin API reference generated from the include files
- SourceMod extension development: C++ examples and introduction to various extension interfaces