sourcemod/plugins
Your Name d099dbb659 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.

# Conflicts:
#	tools/buildbot/PackageScript
2023-08-30 22:08:46 +02:00
..
admin-flatfile Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminmenu Add missing return values in plugins 2021-08-21 14:11:20 -07:00
basebans Add missing return values in plugins 2021-08-21 14:11:20 -07:00
basecomm Add missing return values in plugins 2021-08-21 14:11:20 -07:00
basecommands Add missing return values in plugins 2021-08-21 14:11:20 -07:00
basevotes Prevent enum shadowing & pin sourcemod for build fixes (#1661) 2023-08-30 22:08:45 +02:00
funcommands Add GetCmdArgFloat(Ex) stocks (#1742) 2023-08-30 22:08:45 +02:00
funvotes Add missing return values in plugins 2021-08-21 14:11:20 -07:00
include Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2023-08-30 22:08:46 +02:00
playercommands Add missing return values in plugins 2021-08-21 14:11:20 -07:00
testsuite Add functions for working with entity lumps (#1673) 2023-08-30 22:08:45 +02:00
admin-sql-prefetch.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
admin-sql-threaded.sp Add support for other Steam ID formats to admin-sql-threaded (#1520). 2023-08-30 22:08:45 +02:00
adminhelp.sp NPOTB: Use camel casing for variables in adminhelp.sp (#1750) 2023-08-30 22:08:45 +02: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. 2023-08-30 22:08:46 +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 missing return values in plugins 2021-08-21 14:11:20 -07:00
basecomm.sp Fix basecomm failing to load on games without sv_alltalk (#1212) 2020-03-11 21:24:16 -07:00
basecommands.sp Prevent basecommands from printing to disconnected clients (#1138) 2020-02-06 22:32:16 -08:00
basetriggers.sp Add missing return values in plugins 2021-08-21 14:11:20 -07:00
basevotes.sp Allow h-flag admins to bypass vote delay (#1733) 2023-08-30 22:08:45 +02:00
clientprefs.sp cookies: Align output with sm_help (#977) 2020-07-08 20:38:35 -07: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. 2023-08-30 22:08:46 +02:00
funcommands.sp Add missing return values in plugins 2021-08-21 14:11:20 -07:00
funvotes.sp Allow h-flag admins to bypass vote delay (#1733) 2023-08-30 22:08:45 +02:00
mapchooser.sp Update to the new SourcePawn compiler. 2023-08-30 22:08:45 +02:00
nextmap.sp Enable nextmap for Black Mesa (#1695) 2023-08-30 22:08:45 +02:00
nominations.sp Prevent workshop prefix from showing in nominations results menu (#1737) 2023-08-30 22:08:45 +02:00
playercommands.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
randomcycle.sp Prevent duplicate map changes in randomcycle.sp (#1428) 2021-03-14 01:02:42 -08:00
reservedslots.sp Disable Reserved Slots plugin on Contagion. 2023-08-30 22:08:45 +02:00
rockthevote.sp Add missing return values in plugins 2021-08-21 14:11:20 -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 Add PostgreSQL database driver (#32) 2021-03-11 11:21:51 +01:00