KickClientEx

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

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.

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

Return Value

void

Error

Invalid client index, or client not connected.