Author Topic: Dumb question: How to properly "close" a dedicated server?  (Read 856 times)

Using quit(); simply acts as if the server crashed to the clients, where everyone gets the [color=yellow=]LAG[/color] icon for about a minute until they timeout. How can I simulate a non-dedicated shutdown where the host exits to main menu, and everyone gets the message "Server has shut down." or something like that?

I believe shutdown(); does what you're looking for.