private static void Main(string[] args) { Console.Title = Cheat.NAME; Console.CursorVisible = false; DebugUtility.Log("\n\n"); WriteWithColor("CGWH - Started", ConsoleColor.Yellow, true); WriteWithColor($"> [VD] = {Cheat.VERSION_DATE} [VT] = {Cheat.VERSION_TIME}\n\n", ConsoleColor.White, true); Cheat cheat = new Cheat(); ESP esp = new ESP(cheat); if (cheat.IsValidVersion()) { if (cheat.IsGetProcess()) { WriteWithColor("Sucsesfully working!", ConsoleColor.Green, true); esp.LoadESP(); } else { WriteWithColor("Process '" + Cheat.PROCESS_NAME + "' was not found!", ConsoleColor.Red, true); } } else { WriteWithColor("Version of game is not valid", ConsoleColor.Red, true); } Console.ForegroundColor = ConsoleColor.Black; Console.ReadLine(); }
internal Main() { InitializeComponent(); Instance = this; FormClosed += onApplicationUnloading; Listener = new SimpleKeyboardListener(); if (!Cheat.TryCheckValidVersion(out string content)) { MessageBox.Show(content, "Game version is not valid!", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (!Cheat.TryFindProcess()) { MessageBox.Show("Please start game!", "CSGO Not found", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } new ESP(true); new Trigger(); new AntiFlash(false); new AutoBunnyhop(false); new AutoPistol(true); new Radar(false); new FovChanger(false); }
internal ESP(Cheat cheat) { this.cheat = cheat; }