client_cmd

Синтаксис

native client_cmd(index, const command[], any:...);

Употреба

index
Client index, use 0 to execute on all clients
command
Formatting rules
...
Variable number of formatting parameters

Описание

Executes a command on the client.

Забележка

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.

Връщаща стойност

Length of formatted command string

Грешка

If a single client is specified and the index is not within
the range of 1 to MaxClients, an error will be thrown.