FakeClientCommand Function

Executes a client command on the server without being networked.

FakeClientCommand() overwrites the command tokenization buffer. This can cause undesired effects because future calls to GetCmdArg* will return data from the FakeClientCommand(), not the parent command. If you are in a hook where this matters (for example, a "say" hook), you should use FakeClientCommandEx() instead.

void FakeClientCommand(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.