HolyLib Wiki

Disconnect

  CBaseClient:Disconnect( string reason, boolean silent = false, boolean nogameevent = false )

Description

Disconnects the client.

Arguments

1string reason
the reason to disconnect the client with
2boolean silent = false
if true it will silently close the net channel and sends no disconnect to the client
3boolean nogameevent = false
if true it will stop the player_disconnect gameevent from being created