ID:2193073
 
(See the best response by Starborn910.)
How do i stop people from reconnecting during a reboot? I want everyones game client to just close. For some reason reconnect causes weird bugs with icons going invisible
Best response
you could include something like this in your reboot verb/proc to force all players to logout before the reboot is initiated.

for(var/mob/player/M in world)
if(M.client) winset(M, null, "command=.quit")
Thanks I'll try it
Well i think i would just overall kill everyone connection. like this.
> for(var/mob/M in world)
> if(M.client && M!=usr)
> world<<"Reconnect to join again :)"
> M.Logout()
>
Use OpenPort() to close the port and disable any further connections after booting everyone

for(var/client/c)
del c


verb
ClosePort()
OpenPort("none")
does the game actually reboot if everyone is forced out of the game