Go to file
BotoX 0bda47d85b 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-10 11:27:18 +02:00
.github Create FUNDING.yml 2019-05-27 17:15:04 +01:00
bridge/include Burninate IDataPack (#864) 2018-08-13 23:03:48 +01: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-10 11:27:18 +02:00
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions cstrike: Fix wrong timeleft calculation (#1072) 2019-09-02 15:33:28 -07:00
gamedata Workaround CS:GO Stringtable bug (#1046) 2019-07-19 09:13:34 +01:00
licenses Incorperate Licensing Into Project Tree (#961) 2019-04-12 12:10:13 -07:00
loader Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
plugins Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-10 11:27:18 +02:00
public Update SourcePawn & amtl submodules (#1067) 2019-09-01 13:24:39 -07:00
sourcepawn@a98c996b16 Update SourcePawn & amtl submodules (#1067) 2019-09-01 13:24:39 -07:00
tools Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-10 11:27:18 +02:00
translations Create menu if multiple nom matches found (#983) 2019-08-01 13:48:10 +01:00
versionlib 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06: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: Enable cstrike builds w/ Travis-CI. (#1014) 2019-05-14 11:38:20 -07:00
AMBuildScript Link pthread library for Linux binaries 2019-07-24 14:47:13 +01:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06:00
product.version Roll version. >_> 2017-12-18 20:39:57 -05:00
pushbuild.txt Trigger build for hl2sdk-csgo update. 2019-03-28 20:00:20 -04:00
README.md Incorperate Licensing Into Project Tree (#961) 2019-04-12 12:10:13 -07:00

SourceMod

General

Development

Contact

  • Connect with us on GameSurge IRC in #sourcemod
  • Alternatively feel free to join our Discord server

License

SourceMod is licensed under the GNU General Public License version 3. Special exceptions are outlined in the LICENSE.txt file inside of the licenses folder.