ClientCommand Function

Executes a client command. Note that this will not work on clients unless they have cl_restrict_server_commands set to 0.

void ClientCommand(int client, const char[] fmt, any... ...)

Parameters

int client

Index of the client.

const char[] fmt

Format of the client command.

any... ...

Format parameters

Errors

Invalid client index, or client not connected.