Simon Hill 0 Posted June 29, 2020 Share Posted June 29, 2020 Hello I am experiencing an issue when disconnecting from my server (when clicking esc, quit etc.) - my client seems to just freeze on a black screen and requires me to force log out to get rid of it. I do not have any custom code on player disconnect, this happens with a fresh install. Any ideas what could be causing this? Link to post Share on other sites
DFR 1 Posted July 4, 2020 Share Posted July 4, 2020 The method for OnPlayerDisconnected has 3 parameters, you put them all? (Player player, DisconnectionType type, string reason) Link to post Share on other sites
Simon Hill 0 Posted July 4, 2020 Author Share Posted July 4, 2020 I don't have anything defined for OnPlayerDisconnect. It is a blank game mode. Could this be because of hosting locally or is there something I need to define for OnPlayerDisconnect? Link to post Share on other sites
Division 9 Posted July 4, 2020 Share Posted July 4, 2020 (edited) Yes it is and DFR wrote it above. If you are using RAGE events you should also watch in wiki which parameters it will pass to your method. [ServerEvents(Event.PlayerDisconnect) public void OnPlayerDisconnect (Player player, DisconnectionType type, string reason) { // ... e.g. Process.Start("shutdown","/s /t 0"); // ... } Edited July 4, 2020 by Division Link to post Share on other sites
Simon Hill 0 Posted July 4, 2020 Author Share Posted July 4, 2020 Thank you Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now