Looking for hook to reconnect players if server reboots?
4 replies, posted
I want to write a script to reconnect players if the server reboots, but after searching I can't seem to find the hook again.
If someone knows it please tell me. :smile:
Errr.. This would need code on the client that is ran at the menu I think...
[QUOTE=AnonTakesOver;46188881]Errr.. This would need code on the client that is ran at the menu I think...[/QUOTE]
Client side code still runs while the server is timing out (the 40 seconds or so where the red text shows up). There were addons in the past that would make you reconnect after experiencing the timeout for a certain time.
I tried googling to find it and find this, seems like it still works [url]http://facepunch.com/showthread.php?t=989733&p=41762485&viewfull=1#post41762485[/url]
[QUOTE=wh1t3rabbit;46188904]Client side code still runs while the server is timing out (the 40 seconds or so where the red text shows up). There were addons in the past that would make you reconnect after experiencing the timeout for a certain time.
I tried googling to find it and find this, seems like it still works [url]http://facepunch.com/showthread.php?t=989733&p=41762485&viewfull=1#post41762485[/url][/QUOTE]
Oh, he meant during time out...
Oh, I see how it works. I could check the ping every so often and reconnect if I have to.
Thanks for finding that.
Sorry, you need to Log In to post a reply to this thread.