sourcemod/plugins
JoinedSenses a5b22498ce Update to sm_ban, sm_kick, & sm_map in chat with no args to display menu (#838)
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.
2018-09-04 00:41:22 +01:00
..
admin-flatfile Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminmenu Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
basebans Update to sm_ban, sm_kick, & sm_map in chat with no args to display menu (#838) 2018-09-04 00:41:22 +01:00
basecomm Update base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
basecommands Update to sm_ban, sm_kick, & sm_map in chat with no args to display menu (#838) 2018-09-04 00:41:22 +01:00
basevotes Remove MAPLIST_FLAG_NO_DEFAULT misuses (#870) 2018-08-19 12:41:53 +01:00
funcommands Making gravity's LogAction message consistent... (#695) 2017-09-26 20:22:30 -04:00
funvotes Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +01:00
include Add missing MarkNativeAsOptional for SetAuthIdCookie native (#879) 2018-09-01 00:19:48 +01:00
playercommands Making rename's LogAction message consistent... (#696) 2017-09-26 20:22:38 -04:00
testsuite Update FindMap testsuite plugin. 2015-11-06 02:38:59 -05:00
admin-sql-prefetch.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
admin-sql-threaded.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminhelp.sp Fix sm_help erroring out if invoked during the connection process (#723) 2018-07-12 11:18:57 -07:00
adminmenu.sp Allow any returns in native callbacks (#857) 2018-07-25 21:46:44 -07:00
AMBuilder Treat sp warnings as errors when building 2014-09-05 08:26:23 -07:00
antiflood.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
basebans.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
basechat.sp Add internationalization to basechat and fix CS:GO colours (#674) 2017-12-30 12:25:32 -08:00
basecomm.sp Update base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
basecommands.sp Sanitize servercfgfile and lservercfgfile values with sm_cvar (bug 6579). 2017-01-20 15:29:25 -05:00
basetriggers.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
basevotes.sp Prevent use of primitive float operation functions (#763) 2018-02-02 23:27:38 +00:00
clientprefs.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
compile.sh Add spacing to compile.sh (#53) 2016-10-24 14:50:24 +01:00
funcommands.sp Update fun plugins for transitional syntax (#508) 2016-05-11 10:56:12 -04:00
funvotes.sp Prevent use of primitive float operation functions (#763) 2018-02-02 23:27:38 +00:00
mapchooser.sp Remove superfluous assignment after delete (#654) 2017-08-22 20:55:04 +01:00
nextmap.sp Separate out DOI build. (#718) 2017-11-03 15:45:16 -04:00
nominations.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
playercommands.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
randomcycle.sp Add new function: GetMapDisplayName. 2015-09-15 16:16:58 -04:00
reservedslots.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
rockthevote.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
sounds.sp Show errors for methods that are unused. (bug 6183) 2014-07-12 10:28:29 -07:00
sql-admin-manager.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00