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... ...)


int client

Index of the client.

const char[] fmt

Format of the client command.

any... ...

Format parameters


Invalid client index, or client not connected.