583 {
584 bool disconnectNow = true;
585
586
587
589 {
590 if (player.IsAlive())
591 {
593 {
594 Print(
"[Logout]: New player " + identity.
GetId() +
" with logout time " + logoutTime.ToString());
595
596
597 player.StatSyncToClient();
598
599
601
602
604
607
608
609
610
611
612
613
614 disconnectNow = false;
615 }
616 return;
617 }
618 }
619
620 if (disconnectNow)
621 {
622 Print(
"[Logout]: New player " + identity.
GetId() +
" with instant logout");
623
624
626
628 }
629 }
proto native Hive GetHive()
override ScriptCallQueue GetCallQueue(int call_category)
proto native void SendLogoutTime(Object player, int time)
Inform client about logout time (creates logout screen on specified client)
void AddNewPlayerLogout(PlayerBase player, notnull LogoutInfo info)
void PlayerDisconnected(PlayerBase player, PlayerIdentity identity, string uid)
ref map< PlayerBase, ref LogoutInfo > m_NewLogoutPlayers
ref map< PlayerBase, ref LogoutInfo > m_LogoutPlayers
proto string GetId()
unique id of player (hashed steamID, database Xbox id...) can be used in database or logs
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
Param2< int, string > LogoutInfo
int time of the logout end