Topic: [HELP] Sleep command in .cfg?
Hi all!
I'm writing a .cfg that displays some warning before my server goes down, but I need the script to wait some seconds before calling "shutdown". Is there any command like Linux's "sleep"? Thanks
You are not logged in. Please login or register.
Teeworlds Forum → Support → [HELP] Sleep command in .cfg?
Hi all!
I'm writing a .cfg that displays some warning before my server goes down, but I need the script to wait some seconds before calling "shutdown". Is there any command like Linux's "sleep"? Thanks
I don't know, but I think it's useless because the clients are dropped with a message "Server shutdown" at shutdown
My clients report a "Connection problems..." message, anyway I'd like to warn them BEFORE the server goes down...
How do you shutdown your server ? with the "shutdown" command ?
No, with "exec shutdown.cfg", shutdown.cfg is:
broadcast server closing
shutdown
I'd like a "sleep" between the 2 commands
There is no sleep command. cfg files are not meant to be scripts but configurations. It is not possible with the standard teeworlds server/client to use scripts for the commands/settings.
Why do you want to warn players anyways? When the server is shutdown, a message is sent to the clients, is that not enough?
I'd like to warn players so they can finish the current match...
But when I shutdown, my players (and me too) get only a "connection problems" not a "server shutdown" so they may think it's a TRUE connection problem
And when you close with "shutdown" you get "connection problems" ?
Right
He said so. However, if that is the case he either does not use a standard teeworlds server or client, in which case we can't help, because we don't support modifications. Just use the standard teeworlds server and it should not be any problem.
Standard Teeworlds Server 0.5.2
Use 0.6.0
Yes, you're using a modded server that is not based of the 0.6 source. Try to find your mod for 0.6
edit: grilled x10
edit2: if you use 0.5.2, forget what you want to do
Teeworlds Forum → Support → [HELP] Sleep command in .cfg?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.