Commit Graph
7 Commits
Author SHA1 Message Date
BotoX 7ed4e88915 Changes on sm_*say 2019-12-05 18:56:28 +01:00
BotoX 453001ae9c Fix HookEntityOutput/HookSingleEntityOutput bugs in sdktools. 2019-12-05 18:56:28 +01:00
BotoX b71a98f174 Add GetClientIClient native. 2019-12-05 18:56:28 +01:00
BotoX 2e0beed7c9 Extend function calling API for natives and allow catching exceptions.
Change sourcepawn url.
2019-12-05 18:56:24 +01:00
BotoX 182da464cd Fix @spec not targeting clients in unassigned team. 2019-11-28 14:48:31 +01:00
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
BotoX 86fbf20a85 Add more macros to CDetour. 2019-11-28 14:48:31 +01:00