Results 1 to 3 of 3
  1. #1
    DeivisMac's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Posts
    168
    Reputation
    22
    Thanks
    85
    My Mood
    Blah

    How to make true/false change in same line

    Im new to coding and i see many hacks that change true/false in same line if my question make any sense can u answer how ? https://gyazo.com/3023fd517c66cd358d95c8a0bc82e225

  2. #2
    DarknzNet's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    4,042
    Reputation
    563
    Thanks
    15,728
    Code:
    bool GlowKey = false;
    string IsGlowEnabled = "false";
    
    void ConsoleMenu()
    {
         cout << "F1 : Glow Esp : " + IsGlowEnabled << endl;
    }
    
    void Hotkeys()
    {
       if (GetAsyncKeyState(VK_F1) & 0x8000)
       {
        if (!GlowKey)
        {
           IsGlowEnabled = "true";
           GlowKey = !GlowKey;
           Sleep(100);
        }
        else
        {
           IsGlowEnabled = "false";
           GlowKey = !GlowKey;
           Sleep(100);
        }
       ConsoleMenu();
       }
    }

    That works, but there are many other ways to do it.
    Last edited by DarknzNet; 12-31-2016 at 05:49 PM. Reason: Forgot if getasynckey state.
     
    Member since : 08-24-2015

    Premium Member since : 01-19-2016

    Contributor : 02-27-2016 - 11.09.2017

    League of Legends Minion since : 08-24-2016

    Counter Strike: Global Offensive Minion since : 12-29-2016

    Steam Minion since : 02-11-2017

    Resigned : 04-20-2017

  3. #3
    Gaar's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Location
    𝙎𝙪𝙞𝙘𝙞𝙙𝙖𝙡 ♥‿♥
    Posts
    6,228
    Reputation
    852
    Thanks
    1,669
    Been a week since last bump or response by OP. Assuming solved.

    //closed.

Similar Threads

  1. [Solved] How To Make Hacks And Change Into Dll?
    By InterGGwp in forum Blackshot Coding & Source Code
    Replies: 1
    Last Post: 11-15-2015, 02:15 AM
  2. [Tutorial] How to make a distance changing spray (any source game).
    By Ialmdev5DLL in forum Garry's Mod Hacks & Cheats
    Replies: 9
    Last Post: 05-04-2013, 05:36 PM
  3. [Info] How to make Steam NOT change your CD-KEY
    By JackKellar in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 5
    Last Post: 01-16-2013, 10:59 AM
  4. How to make Mod and change them?
    By bedi123 in forum Blackshot Help
    Replies: 3
    Last Post: 01-04-2013, 09:07 PM
  5. how to make a text over a few lines ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 10
    Last Post: 11-09-2007, 10:51 AM