public static void RequestAction(string action, string arg, bool state = true) { var client = new WebClient(); switch (action) { case "ban": Networking.BanHwid(arg, state); MessageBox.Show(@"Banned/unbanned (" + arg + @")", @"admin - xaynware", MessageBoxButtons.OK, MessageBoxIcon.Information); break; case "add": Networking.AddHwid(arg); MessageBox.Show(@"Added hwid (" + arg + @")", @"admin - xaynware", MessageBoxButtons.OK, MessageBoxIcon.Information); break; case "version": Networking.ChangeVersion(arg); MessageBox.Show(@"Changed version of the cheat to " + arg, @"admin - xaynware", MessageBoxButtons.OK, MessageBoxIcon.Information); break; case "build": Networking.ChangeBuildDate(arg); MessageBox.Show(@"Changed build date of the cheat to " + arg, @"admin - xaynware", MessageBoxButtons.OK, MessageBoxIcon.Information); break; case "log": var fileName = Path.GetTempPath() + $"{ToSafeName($"{DateTime.Now:G}")}.log"; var data = client.DownloadString("https://yourlink.com/hwid/get_logs.php"); File.WriteAllText(fileName, data); Process.Start(fileName); break; case "changelog": new Changelog().Show(); break; case "status": Networking.ChangeStatus(arg); break; } }