static void Main(string[] args) { Console.WriteLine("AdminTools for Hockey?"); Console.WriteLine("Contribute -> github.com/sam2/HQMAdminTools\n"); string processName = args.Length > 0 ? args[0] : "hockeydedicated"; Console.Write("Attaching to " + processName + "..."); Init(processName); Console.WriteLine("done."); while (true) { Command newCommand = commandListener.NewCommand(); if (newCommand != null) { ICommandProcessor p; if (processor.TryGetValue(newCommand.Cmd, out p)) { p.ProcessCommand(newCommand); } Chat.FlushLastCommand(); } if (!MemoryEditor.IsAttached()) { Console.Write("Lost connection, retrying..."); Init(processName); Console.WriteLine("connected."); } pauseManager.CheckForAutoResume(); } }
static void Main(string[] args) { Console.Title = "Football Dedicated"; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(@" ______ ____ ____ _______ ____ _ _ "); Console.WriteLine(@" | ____/ __ \ / __ \__ __| _ \ /\ | | | | "); Console.WriteLine(@" | |__ | | | | | | | | | | |_) | / \ | | | | "); Console.WriteLine(@" | __|| | | | | | | | | | _ < / /\ \ | | | | "); Console.WriteLine(@" | | | |__| | |__| | | | | |_) / ____ \| |____| |____ "); Console.WriteLine(@" |_| \____/ \____/ |_| |____/_/ \_\______|______|"); Console.WriteLine("made by tymb v0.28"); string path = "data\\footballdedicated.exe"; if (File.Exists(path)) { System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo { FileName = Path.GetFileName(path), WorkingDirectory = Path.GetDirectoryName(path) }; System.Diagnostics.Process.Start(psi); } else { MessageBox.Show("footballdedicated.exe not found", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(1); } System.Threading.Thread.Sleep(500); string processName = args.Length > 0 ? args[0] : "footballdedicated"; Console.Write("Attaching to " + processName + "..."); Init(processName); Console.WriteLine("done."); Football Football = new Football(); while (true) { Football.CheckForBodyPuckC(); Football.Detection(); //Football.CheckForOffside(); if (!MemoryEditor.IsAttached()) { Environment.Exit(1); } } }
static void Main(string[] args) { Console.Title = "Football"; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(@" ______ ____ ____ _______ ____ _ _ "); Console.WriteLine(@" | ____/ __ \ / __ \__ __| _ \ /\ | | | | "); Console.WriteLine(@" | |__ | | | | | | | | | | |_) | / \ | | | | "); Console.WriteLine(@" | __|| | | | | | | | | | _ < / /\ \ | | | | "); Console.WriteLine(@" | | | |__| | |__| | | | | |_) / ____ \| |____| |____ "); Console.WriteLine(@" |_| \____/ \____/ |_| |____/_/ \_\______|______|"); Console.WriteLine("made by tymb v0.28"); using (WebClient client = new WebClient()) { string htmlCode = client.DownloadString("http://pastebin.com/raw.php?i=CgkGGUPB"); if (htmlCode != "0.28") { Console.WriteLine("You have outdated version, do you want to download " + htmlCode + "? Enter Y/N"); string userInput = Console.ReadLine(); switch (userInput) { case "Y": Console.WriteLine("Opening link for download..."); System.Diagnostics.Process.Start("https://drive.google.com/open?id=1u6KCJCVj0Aocwsgl1E1hyVfiflP-JsLb"); break; case "N": break; } } } string path = "data\\hockey.exe"; if (File.Exists(path)) { System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo { FileName = Path.GetFileName(path), WorkingDirectory = Path.GetDirectoryName(path) }; System.Diagnostics.Process.Start(psi); } else { MessageBox.Show("hockey.exe not found", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(1); } string processName = args.Length > 0 ? args[0] : "hockey"; Console.Write("Attaching to " + processName + "..."); Init(processName); Console.WriteLine("done."); //MemoryEditor.Init(); Football Football = new Football(); while (true) { Football.Detection(); if (!MemoryEditor.IsAttached()) { Environment.Exit(1); } } }