Signature
forward client_disconnected(id, bool:drop, message[], maxlen);
Description
Called when a client is disconnected from the server.
Notes
-
This will be called in some additional cases that client_disconnect doesn't cover,
most notably when a client aborts the connection process. It is guaranteed to pair
with the client_connect() forward.
-
When this fires the player entity is still valid (e.g. is_user_connected(id) will
return true), but no networked commands will reach the client.
Parameters
- id — Client index
- drop — If true, the game has explicitly dropped the client
- message — If drop is true, a writable buffer containing the disconnect info message
- maxlen — Maximum size of buffer
No return value