Signature
native client_cmd(index, const command[], any:...);
Description
Executes a command on the client.
Notes
-
Executing malicious commands on the client ("slowhacking") is frowned
upon.
-
Valve has introduced a command filter to Counter-Strike 1.6. It is not
possible to execute many commands if the client has opted in to this.
Parameters
- index — Client index, use 0 to execute on all clients
- command — Formatting rules
- ... — Variable number of formatting parameters
Returns
Length of formatted command string
Errors
-
If a single client is specified and the index is not within
the range of 1 to MaxClients, an error will be thrown.