sourcemod/plugins
BotoX 865fa37ed9 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-09-21 20:29:53 +02: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 base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
basecomm Update base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
basecommands Update sm_map behavior to better reflect FindMap/GetMapDisplayName results (#588) 2017-03-13 15:52:37 -07:00
basevotes Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +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 Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-21 20:29:53 +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 Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminhelp.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminmenu.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
AMBuilder Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-21 20:29:53 +02:00
antiflood.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
basebans.sp Update basebans and SQL admins plugins for transitional syntax (#484) 2016-04-27 09:34:22 -04:00
basechat.sp Add target arg to LogAction in basechat sm_psay. (#690) 2017-09-23 10:45:41 -07: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 Update base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
basevotes.sp Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +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-09-21 20:29:53 +02:00
funcommands.sp Update fun plugins for transitional syntax (#508) 2016-05-11 10:56:12 -04:00
funvotes.sp Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +01: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 Fix /nominations returning Plugin_Continue (#532) 2016-07-31 13:16:38 -04: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 rockthevote.sp - RoundToFloor() -> RoundToCeil() (#590) 2017-02-28 23:05:00 +00: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