Ejemplo n.º 1
0
        private void timer_CSGORunning_Tick(object sender, EventArgs e)
        {
            int isRunning = MachineFunctions.IsGameEnable();

            if (isRunning == 1)
            {
                rightsError                = false;
                lab_csgoRunning.Text       = Constants.csgoRunning;
                lab_csgoRunning.BackColor  = Constants.colorDarkGreen;
                timer_CSGORunning.Interval = Constants.timerCheckOnDelay;
                if (!lastRun)
                {
                    multiCheat.CsgoStarted();
                }
                lastRun = true;
            }
            else
            {
                lab_csgoRunning.Text       = Constants.csgoNotRunning;
                lab_csgoRunning.BackColor  = Constants.colorDarkRed;
                timer_CSGORunning.Interval = Constants.timerCheckOffDelay;
                if (lastRun)
                {
                    multiCheat.OffAllCheats();
                }
                lastRun = false;
                if (isRunning == -1 && rightsError == false)
                {
                    rightsError = true;
                    MessageBox.Show("Отказано в доступе к процессу. Запустите MultiCheat от имени Администратора!", "MultiCheat", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
                }
            }
        }
Ejemplo n.º 2
0
 private bool Init()
 {
     while (working)
     {
         if (MachineFunctions.IsGameEnable() == 1 && MachineFunctions.GetGameModules(out dll_client_address, out dll_engine_address) == 1)
         {
             break;
         }
         Thread.Sleep(Constants.cheatRefreshDelay);
     }
     return(working);
 }