Add CapabilityProvider for MultiTargetFilter client param

This commit is contained in:
BotoX
2019-09-10 11:22:05 +02:00
parent b68e032cc2
commit f8f48e6219
2 changed files with 17 additions and 1 deletions
+4
View File
@@ -132,6 +132,8 @@ stock void ReplyToTargetError(int client, int reason)
}
}
#define FEATURECAP_MULTITARGETFILTER_CLIENTPARAM "SourceMod MultiTargetFilter ClientParam"
/**
* Adds clients to a multi-target filter.
*
@@ -139,6 +141,8 @@ stock void ReplyToTargetError(int client, int reason)
* @param clients Array to fill with unique, valid client indexes.
* @param client Client that triggered this filter.
* @return True if pattern was recognized, false otherwise.
*
* @note To see if the client param is available, use FeatureType_Capability and FEATURECAP_MULTITARGETFILTER_CLIENTPARAM.
*/
typeset MultiTargetFilter {
function bool (const char[] pattern, Handle clients);