Skip to content

event onPlayerDisconnect (server-side)

This event is triggered when a player gets disconnected with the server.

Parameters

int playerid, int reason
  • int playerid: the id of the player who joined the server.
  • int reason: the reason why player got disconnected. For more information see Network constants.