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.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
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