sourcemod/plugins/include
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.inc Add bitwise SetBitFlags for AdminId and GroupId (#1677) 2023-08-30 22:08:45 +02:00
adminmenu.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
adt_array.inc Fix ArrayList return types (#1679) 2023-08-30 22:08:45 +02:00
adt_stack.inc Add ArrayStack.Clear native (#1676) 2023-08-30 22:08:45 +02:00
adt_trie.inc Correct documentation in adt_trie.inc (#1465) 2021-04-04 15:11:30 -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 Honor AUTOLOAD_EXTENSIONS in clientprefs include (#1718) 2023-08-30 22:08:45 +02:00
clients.inc Add MAX_AUTHID_LENGTH (#1696) 2023-08-30 22:08:45 +02:00
commandfilters.inc 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
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. 2023-08-30 22:08:46 +02:00
convars.inc Removed incorrect parameter RemoveChangeHook desc 2023-08-30 22:08:45 +02:00
core.inc 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
cstrike.inc Fix CS_OnCSWeaponDrop after latest CSGO update (21/10/21) (#1602) 2023-08-30 22:08:45 +02:00
datapack.inc Add an array operations to CDataPack (#1219) 2020-05-08 15:23:48 -07:00
dbi.inc Database.Format destination buffer should not be marked const (#1714) 2023-08-30 22:08:45 +02:00
dhooks.inc DHooks: Allow setting CBaseEntity* param to NULL #1751 (#1754) 2023-08-30 22:08:45 +02:00
DynamicTargeting.inc 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
entity_prop_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
entity.inc Return array type info with FindSendPropInfo (#1548) 2021-08-01 19:44:18 +01:00
entitylump.inc Add functions for working with entity lumps (#1673) 2023-08-30 22:08:45 +02:00
events.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
files.inc Change int[] to any[] for data r/w functions (#1221) 2020-07-09 10:09:13 +01:00
float.inc Update float.inc (#1591) 2023-08-30 22:08:44 +02:00
functions.inc Update dhooks.inc documentation for consistency (#1658) 2023-08-30 22:08:45 +02:00
geoip.inc Update GeoIP2 extension to new GeoLite2 .mmdb database format (#1245) 2021-06-30 13:01:12 +02:00
halflife.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01:00
handles.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
helpers.inc Add comment about common.phrases to FindTarget (#1155) 2020-01-14 15:00:27 -08: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 Reduce code size for strict dependencies on mapchooser (#1528) 2021-07-22 14:37:43 +02:00
menus.inc Fix missed old syntax parameter in menus 2020-12-13 20:12:07 +01: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 regex: add/document missing offset param (#1175) 2020-02-26 15:52:04 -08:00
sdkhooks.inc Add option to not bypass hooks with TakeDamage and DropWeapon natives. 2023-08-30 22:08:45 +02:00
sdktools_client.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01: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 Add "DispatchKeyValueInt" stock (#1764) 2023-08-30 22:08:45 +02:00
sdktools_gamerules.inc Support reading legacy sendprop arrays (#1550) 2021-08-23 21:21:11 +01:00
sdktools_hooks.inc Add a OnPlayerRunCmdPre forward (#1760) 2023-08-30 22:08:45 +02:00
sdktools_sound.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01:00
sdktools_stocks.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_stringtables.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01: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 Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01:00
sdktools_variant_t.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
sdktools_voice.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01:00
sdktools.inc Reorder SDKCallType enum for better compatibility with existing plugins. 2023-08-30 22:08:45 +02: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. 2023-08-30 22:08:46 +02:00
string.inc Correct some function docs that return char count (#1721) 2023-08-30 22:08:45 +02:00
testing.inc testing: Add stock AssertStrEq (#1185) 2020-07-08 19:18:39 -07:00
textparse.inc Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
tf2_stocks.inc Fix compiling with tf2_stocks 2023-08-30 22:08:45 +02:00
tf2.inc TF2: Add TFCond_ImmuneToPushback condition (#2023) 2023-08-30 22:08:46 +02:00
timers.inc Remove unnecessary timer typeset entry (#1735) 2023-08-30 22:08:45 +02:00
topmenus.inc Documentation corrections and additions (#1498) 2021-06-24 15:45:01 +01: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 Bump version for non-VCS builds (#1243) 2020-04-27 15:50:03 +01:00
version.tpl Mirrored buildbot/version template changes from branch. 2008-09-14 06:13:25 +00:00