KickClient Function

Disconnects a client from the server as soon as the next frame starts.

Note: Originally, KickClient() was immediate. The delay was introduced because despite warnings, plugins were using it in ways that would crash. The new safe version can break cases that rely on immediate disconnects, but ensures that plugins do not accidentally cause crashes.

If you need immediate disconnects, use KickClientEx().

Note: IsClientInKickQueue() will return true before the kick occurs.

void KickClient(int client, const char[] format, any ...)


int client

Client index.

const char[] format

Optional formatting rules for disconnect reason. Note that a period is automatically appended to the string by the engine.

any ...

Variable number of format parameters.


Invalid client index, or client not connected.