Click or drag to resize
BaseModePlayerCleanup Event
Occurs when the OnPlayerCleanup(BasePlayer, DisconnectEventArgs) callback is being called. This callback is called after a player has disconnected.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
public event EventHandler<DisconnectEventArgs> PlayerCleanup

Value

Type: SystemEventHandlerDisconnectEventArgs
Remarks
Because BasePlayer probably is the first listener of this event, the BasePlayer object is already disposed before any other listeners are called. It is better to either use the PlayerDisconnected event or Cleanup
See Also