Is there any way to spectate someone if they get a penalty over 30 seconds with a message?
// To intercept Ctrl-C, ..., and other break and Close Lapper in safe mode
public void inputHandler(ConsoleCtrl.ConsoleEvent consoleEvent)
{
if (consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlC
|| consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlClose
|| consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlBreak
|| consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlLogoff
|| consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlShutdown )
{
byte[] cl = InSim.Encoder.IS_TINY( (byte)InSim.TypePack.ISP_TINY, 0, (byte)InSim.TypeTiny.TINY_CLOSE);
insimConnection.Send(cl, cl.Length);
System.Environment.Exit(-1);
}
}
|| consoleEvent == ConsoleCtrl.ConsoleEvent.CtrlLogoff