FakeClientCommand

Last Updated2016-05-21
Created At2007-06-07

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.

native 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

Return Value

void

Error

Invalid client index, or client not connected.