Can anyone/somesone post a tutorial how to restart your server for about 15 or 10 min or higher.
using LOFT source.
thanks
using LOFT source.
thanks
public static System.Timers.Timer RestartTimer;
RestartTimer = new System.Timers.Timer();
RestartTimer.Interval = <Interval in Miliseconds>
RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed);
RestartTimer.Start();
void RestartTimer_Elapsed(object sender, ElapsedEventArgs e)
{
Process nServ = new Process();
nServ.StartInfo.FileName = Application.StartupPath + @"COServerProject.exe";
nServ.Start();
World.SaveAllChars();
Environment.Exit(0);
}
Anytime, whatever yah need.Quote:
thanks for that
Yeah dude, anytime. Good good.Quote:
tnx kinshi88 this helped me alot cause i couldn't fix it but finnaly i know what was wrong
Yes you could, always a good idea.Quote:
You could even add a new timer with <Interval in Miliseconds> minus one minute, and broadcast the restart on GM channel.