sourcemod/plugins
BotoX a0b8153f4b Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS.
Explanation:
There are two clients in the server, one named gene, the other one "Ene ~special characters~".
An admin issues "sm_slay Ene" and gets following error message: More than one client matched the given pattern.
What this hack will do is: Use GetCmdArg(0, ...); to get the command name "sm_slay".
Use GetCmdArgString(...); to get the arguments supplied to the command.
Use GetLastProcessTargetString(...); (which was implemented in this commit) to retrieve the arguments that were passed to the last ProcessTargetString call.
It will then pass this data to the DynamicTargeting plugin through its AmbiguousMenu native.
The plugin will open up a menu on the client and list all targets which match the pattern that was supplied to ProcessTargetString.
If the client selects a menu entry, FakeClientCommand will be used to re-execute the command with the correct target.
2019-10-20 12:28:44 +02:00
..
admin-flatfile Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminmenu Fully convert dynamicmenu to transitional enum structs. (#1082) 2019-09-15 14:02:46 -07:00
basebans Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basecomm Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basecommands Use map display name for admin map chooser menu (#1097) 2019-10-07 19:15:36 +01:00
basevotes basevotes: Fix buffer size for workshop obtained levels. (#956) 2019-03-03 15:00:24 -08: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 Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-10-20 12:28:44 +02: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 Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08: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 Create GlobalForward & PrivateForward methodmaps (#1004) 2019-05-29 14:17:42 -07:00
AMBuilder Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-10-20 12:28:44 +02:00
antiflood.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basebans.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basechat.sp Add internationalization to basechat and fix CS:GO colours (#674) 2017-12-30 12:25:32 -08:00
basecomm.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08: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 Fix wrong formatting to "Vote Delay Minutes" when delay above 60s (#1009) 2019-05-13 00:20:47 +01: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
DynamicTargeting.sp Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-10-20 12:28:44 +02:00
funcommands.sp Add GameData methodmap (#766) 2018-10-11 20:27:56 -07:00
funvotes.sp Fix wrong formatting to "Vote Delay Minutes" when delay above 60s (#1009) 2019-05-13 00:20:47 +01:00
mapchooser.sp Create GlobalForward & PrivateForward methodmaps (#1004) 2019-05-29 14:17:42 -07:00
nextmap.sp Separate out DOI build. (#718) 2017-11-03 15:45:16 -04:00
nominations.sp Create menu if multiple nom matches found (#983) 2019-08-01 13:48:10 +01: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 SQL-Admin-Manager: style clean-up (#974) 2019-04-06 11:47:21 -07:00