Type Sets1
SymbolDescription
MultiTargetFilterAdds clients to a multi-target filter.
Defines16
SymbolDescription
COMMAND_FILTER_ALIVEOnly allow alive players
COMMAND_FILTER_CONNECTEDAllow players not fully in-game
COMMAND_FILTER_DEADOnly filter dead players
COMMAND_FILTER_NO_BOTSDo not allow bots to be targetted
COMMAND_FILTER_NO_IMMUNITYIgnore immunity rules
COMMAND_FILTER_NO_MULTIDo not allow multiple target patterns
COMMAND_TARGET_AMBIGUOUSPartial name had too many targets
COMMAND_TARGET_EMPTY_FILTERA multi-filter (such as @all) had no targets
COMMAND_TARGET_IMMUNESingle client is immune
COMMAND_TARGET_NONENo target was found
COMMAND_TARGET_NOT_ALIVESingle client is not alive
COMMAND_TARGET_NOT_DEADSingle client is not dead
COMMAND_TARGET_NOT_HUMANTarget was not human
COMMAND_TARGET_NOT_IN_GAMESingle client is not in game
FEATURECAP_MULTITARGETFILTER_CLIENTPARAM
MAX_TARGET_LENGTH
Functions4
SymbolDescription
AddMultiTargetFilterAdds a multi-target filter function for ProcessTargetString().
ProcessTargetStringProcesses a generic command target string, and resolves it to a list of clients or one client, based on filtering rules and a pattern. Note that you should use LoadTranslations("common.phrases") in OnPluginStart(), as that file is guaranteed to contain all of the translatable phrases that ProcessTargetString() will return.
RemoveMultiTargetFilterRemoves a multi-target filter function from ProcessTargetString().
ReplyToTargetErrorReplies to a client with a given message describing a targetting failure reason. Note: The translation phrases are found in common.phrases.txt.