sourcemod/plugins/include
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.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
adminmenu.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
adt_array.inc Add ADT array blocksize getter (#578) 2017-02-09 19:26:14 +00:00
adt_stack.inc Add ADT array blocksize getter (#578) 2017-02-09 19:26:14 +00:00
adt_trie.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
adt.inc added amb1538 - adt_stack 2008-04-13 06:06:27 +00:00
banning.inc Typo in OnRemoveBan documentation (#542) 2016-09-17 17:23:59 +01:00
basecomm.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
bitbuffer.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
clientprefs.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
clients.inc Add an explanatory note to GetSteamAccountID 2017-08-12 13:04:26 +01:00
commandfilters.inc 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
commandline.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
console.inc 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
convars.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
core.inc 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
cstrike.inc Add new CSGO weapon id's/itemdefs. (#929) 2018-12-12 11:39:30 -08:00
datapack.inc Add missing parameter to DataPack.IsReadable (#603) 2017-04-30 13:49:18 -04:00
dbi.inc Merge pull request #476 from alliedmodders/query-format 2016-10-03 16:20:01 +01:00
DynamicTargeting.inc 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
entity_prop_stocks.inc Update large includes for transitional syntax #1 (#510) 2016-05-21 08:52:43 -04:00
entity.inc Add RemoveEntity native. (bug 5714) (#745) 2018-01-07 13:56:30 -05:00
events.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
files.inc Fix typo in file.inc include (#602) 2017-04-28 06:47:09 -04:00
float.inc Fixed doc on RadToDeg. 2016-10-04 12:42:22 -04:00
functions.inc Add Call_PushNullVector and Call_PushNullString 2017-08-25 23:23:24 +02:00
geoip.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
halflife.inc Separate out DOI build. (#718) 2017-11-03 15:45:16 -04:00
handles.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
helpers.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
keyvalues.inc Add KeyValues.ExportToString (#706) 2017-10-28 12:47:00 +01:00
lang.inc fix bad english 🍋 (#724) 2017-12-03 11:37:50 +00:00
logging.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
mapchooser.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
menus.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
nextmap.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
profiler.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
protobuf.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
regex.inc Fix/Update regex extension and docs (#775, #767) 2018-05-28 15:05:37 -04:00
sdkhooks.inc Add support for hooking CanBeAutobalanced to SDKHooks. 2015-11-26 10:35:00 -05:00
sdktools_client.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_engine.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_entinput.inc Add FireEntityOutput native. (#587) 2017-02-15 19:29:43 -05:00
sdktools_entoutput.inc Add FireEntityOutput native. (#587) 2017-02-15 19:29:43 -05:00
sdktools_functions.inc Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
sdktools_gamerules.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_hooks.inc Add OnPlayerRunCmdPost forward (#591) 2017-05-09 15:16:05 +01:00
sdktools_sound.inc Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
sdktools_stocks.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_stringtables.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_tempents_stocks.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools_tempents.inc Fix syntax for SourcePawn update. 2016-07-09 12:24:18 -07:00
sdktools_trace.inc Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
sdktools_variant_t.inc Add FireEntityOutput native. (#587) 2017-02-15 19:29:43 -05:00
sdktools_voice.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sdktools.inc Add FireEntityOutput native. (#587) 2017-02-15 19:29:43 -05:00
sorting.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
sourcemod.inc 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
string.inc Fixed description for CharToLower and CharToUpper (#564) 2016-12-04 09:08:13 -05:00
testing.inc Update sourcepawn testing include to new syntax. 2016-01-06 18:35:16 -06:00
textparse.inc Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
tf2_stocks.inc Update tf2 stun and death flags. 2017-10-27 08:03:39 -04:00
tf2.inc Update tf2 stun and death flags. 2017-10-27 08:03:39 -04:00
timers.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
topmenus.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
usermessages.inc Add missing const to usermessage function parameters (#735) 2017-12-14 11:27:07 +00:00
vector.inc Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
version.inc Bump non-critical versioning to 1.9 (#938) 2018-12-27 20:27:47 -05:00
version.tpl Mirrored buildbot/version template changes from branch. 2008-09-14 06:13:25 +00:00