KickClientEx Function

Immediately disconnects a client from the server.

Kicking clients from certain events or callbacks may cause crashes. If in doubt, create a short (0.1 second) timer to kick the client in the next available frame.

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

Parameters

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.

Errors

Invalid client index, or client not connected.