Solved [HELP] i wana know another way

Hexui Undetected CSGO Cheats PUBG Accounts

Coulprit 777

Newbie
Full Member
Oct 8, 2013
5
192
0
hi again i wana know how to makke it were if someone was to type hello or something thing like that in a console application it would run this code

if(GetAsyncKeyState(VK_F1))
{
OnePressTMR = clock();
AmmoStatus = !AmmoStatus;
UpdateOnNextRun = true;

if(AmmoStatus)sAmmoStatus = "ON";
else sAmmoStatus = "OFF";
}
thats about it :)
 

Coulprit 777

Newbie
Full Member
Oct 8, 2013
5
192
0
and i know this is probly somthing simple so dont get mad or something haha im a little new to c++ :)
 

NTvalk

Hacker
Meme Tier VIP
Jul 6, 2013
499
3,108
8
C++:
#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main() {

 string input = "";
 string hello = "hello";

 // How to get a string/sentence with spaces
 cout << "Please enter a valid sentence (with spaces):\n>";
 getline(cin, input);
 cout << "You entered: " << input << endl << endl;

 // compare the input with another string
 if (imput.compare(hello) == 0){
    std::cout << input << " is equal to " << hello << '\n';
    myFunction();
 }

 return 0;
}
I really advice you to buy a book (i used C++ primer (not plus)) and learn the basics from there...
 
Community Mods