cmd_targetex
Processes a generic target pattern and tries to match it to a client or a group of clients based on filtering flags and the usage of special arguments.
Syntax
stock cmd_targetex(id, const arg[], players[MAX_PLAYERS], name[], len, TargetexFlags:flags = TARGETEX_OBEY_IMM_SINGLE) {
Usage
| id | Client index of admin performing the action |
| arg | Target pattern |
| name | Buffer to store the client name or argument translation |
| len | Maximum buffer length |
| flags | Optional filtering flags (enum TargetexFlags); valid flags are: |
Return
Number — of clients matched
Notes
If no clients were matched an appropriate message is displayed
If no group matching symbol is used, the function will use the
In order to use the special arguments provided by this function,
This is a list of all the available arguments that admins can use:
For arguments that are used to target more than one client,
When using an argument that targets a group of clients, the admin
If only one client is matched, the client's name will be copied
Defined in
targetex.inc
at line 145
.
This documentation was automatically generated from source.