Go to file
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
.github damn it, duck 2017-08-22 14:02:04 -06:00
bridge/include Add ICellArray and create/free in ISourceMod 2016-08-21 21:32:23 +02:00
configs Allow setting multiple chat trigger characters (PR #449, bug 4341, bug 5668) 2016-10-04 16:34:42 +01:00
core 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
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions Remove unneeded paramter in CS_DropWeapon (#988) 2019-05-01 15:11:22 -07:00
gamedata Update CS:GO "Reload" offset. (#1011) 2019-05-14 19:01:14 -04:00
loader Fix CreateInterface missing in loader. 2017-11-27 19:21:25 -05:00
plugins 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
public Add more macros to CDetour. 2019-09-21 20:20:37 +02:00
sourcepawn@c78349382d Pin sourcepawn submodule to 1.9-dev 2017-10-24 19:16:14 -07:00
tools 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
translations Fix typo in reservedslots.phrases.txt (#717) 2017-11-03 12:19:08 -04:00
versionlib Switch to AMBuild 2.1 API. (#694) 2017-10-02 07:18:57 -05:00
.arcconfig Add a .arcconfig file so that arc works 2013-10-15 22:57:59 +01:00
.gitignore Update to the latest SourcePawn revision. 2015-08-18 09:51:24 -07:00
.gitmodules Use upstream SourcePawn as a submodule. 2015-03-15 16:38:38 -07:00
.travis.yml NPOTB: Remove unsupported packages line from Travis-CI. 2017-10-10 12:00:11 -07:00
AMBuildScript Remove -Werror, does not compile on GCC due to warning in source SDK. 2019-09-21 20:20:21 +02:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Switch to AMBuild 2.1 API. (#694) 2017-10-02 07:18:57 -05:00
product.version Bump version number. 2016-06-05 10:10:07 -04:00
pushbuild.txt Trigger build for hl2sdk-csgo update. 2019-03-28 20:00:32 -04:00
README.md Update links in README. 2017-08-23 09:52:31 -04:00

SourceMod

General

Development