632 {
633
634 if (!player)
635 {
636 Print(
"[Logout]: Skipping player " + uid +
", already removed");
637 return;
638 }
639
640
641
642
643
645
646 Print(
"[Logout]: Player " + uid +
" finished");
647
649 {
650
651 player.Save();
652
653
655 }
656
657
658 player.ReleaseNetworkControls();
660
661
663
665 }
proto native Hive GetHive()
override ScriptCallQueue GetCallQueue(int call_category)
proto native void DisconnectPlayer(PlayerIdentity identity, string uid="")
Destroy player info and disconnect.
proto native void CharacterExit(Man player)
void HandleBody(PlayerBase player)
void InvokeOnDisconnect(PlayerBase player)
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.