OnPlayerDisconnected
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerDisconnected( BasePlayer basePlayer, string strReason )
{
Puts( "OnPlayerDisconnected works!" );
}
Location
- ServerMgr::OnDisconnected(string strReason, Network.Connection connection)
csharp
//---
}
EACServer.OnLeaveGame(connection);
BasePlayer basePlayer = connection.player as BasePlayer;
if (basePlayer != null)
{
Interface.CallHook("OnPlayerDisconnected", basePlayer, strReason);
basePlayer.OnDisconnected();
}
if (connection.authStatusNexus == "ok")
{
NexusServer.Logout(connection.userid);
//---