sourcemod/plugins/include
BotoX e42ff417b1 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-11-28 14:48:31 +01:00
..
admin.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
adminmenu.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
adt_array.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
adt_stack.inc Fix ArrayStack.Pop documentation (#1099) 2019-11-13 00:26:36 -08:00
adt_trie.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
adt.inc added amb1538 - adt_stack 2008-04-13 06:06:27 +00:00
banning.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
basecomm.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
bitbuffer.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
clientprefs.inc Fix whitespace regression from #1012 (#1026) 2019-05-30 20:11:43 -07:00
clients.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
commandfilters.inc Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-11-28 14:48:31 +01:00
commandline.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
console.inc Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-11-28 14:48:31 +01:00
convars.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
core.inc Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-11-28 14:48:31 +01:00
cstrike.inc Add slot define for healthshot/shield and tablet (#1114) 2019-11-04 12:36:17 +00:00
datapack.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
dbi.inc Return DBDriver instead of Handle in DBI (#1109) 2019-10-31 01:53:50 -07:00
DynamicTargeting.inc Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-11-28 14:48:31 +01:00
entity_prop_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
entity.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
events.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
files.inc Fix OpenFile files.inc example (#1120) 2019-11-11 16:24:12 -08:00
float.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
functions.inc Add RequestFrameCallback optional data param (#1068) 2019-09-02 14:00:22 -07:00
geoip.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
halflife.inc Add missing const to origin parameters (#1079) 2019-11-13 00:33:00 -08:00
handles.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
helpers.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
keyvalues.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
lang.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
logging.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
mapchooser.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
menus.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
nextmap.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
profiler.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
protobuf.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
regex.inc Correct malformed Regex documentation (#1055) 2019-07-31 10:48:46 -07:00
sdkhooks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_client.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_engine.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_entinput.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_entoutput.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_functions.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_gamerules.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_hooks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_sound.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_stringtables.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_tempents_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_tempents.inc Add missing const to origin parameters (#1079) 2019-11-13 00:33:00 -08:00
sdktools_trace.inc Add TR_GetHitBoxIndex() native (#1085) 2019-09-17 21:24:36 +01:00
sdktools_variant_t.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_voice.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sorting.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sourcemod.inc Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-11-28 14:48:31 +01:00
string.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
testing.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
textparse.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
tf2_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
tf2.inc Update TF2_IgnitePlayer to support setting duration of fire (#1038) 2019-07-05 22:37:25 +01:00
timers.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
topmenus.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
usermessages.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
vector.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
version.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
version.tpl Mirrored buildbot/version template changes from branch. 2008-09-14 06:13:25 +00:00