Login

Posts 1–9 of 9 · Page 1 of 1
Login
This is my code
Code:
/*    */
/*Main*/
/*    */
int main()
{
 string password1="password";
 string password;
 
 cout << "NotFire Private Pass: " ;
 cin >> password;
 
 if (password == password1)
 {
     cout << "Hello";
     cout << "\n";
     system("pause");
     return EXIT_SUCCESS;      
              
              }   
              else
              {
                  cout << "Pass Incorrect";
                  cout << "\n";
                  
                  }
    
    
    system("pause");
    return EXIT_SUCCESS;


	thread t1(togglesnotfire);
    thread t2(glowespnotfire);
	thread t4(triggernotfire);
	thread t6(bhopnotfire);
	notfire();
    Mem.Process("csgo.exe");
	ClientDll = Mem.Module("client.dll");
    t1.join();
    t2.join();
	t4.join();
	t4.join();
}
i've tried if statements, so if it equals the correct login it continues to execute the threads, but if they get it wrong it stops the cheat and closes down, now i'm having trouble actually getting it to continue to the threads, so can someone help me with this, i'm pretty sure its a simple mistake and i've tried looking at different examples on the internet.
Try this, PSEUDO CODE I haven't tested it but it must work:
Code:
int main()
{
 string password1="password";
 string password;
 pstart:
 cout << "NotFire Private Pass: " ;
 cin >> password;
 
 if (password == password1)
	{
     cout << "Hello";
     cout << "\n";
     system("pause");
     return EXIT_SUCCESS;      
              
	}   
        else
        {
                  cout << "Pass Incorrect";
                  cout << "\n";
				  goto: pstart;
        }
P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
Quote Originally Posted by Block4o View Post
Try this, PSEUDO CODE I haven't tested it but it must work:
Code:
int main()
{
 string password1="password";
 string password;
 pstart:
 cout << "NotFire Private Pass: " ;
 cin >> password;
 
 if (password == password1)
	{
     cout << "Hello";
     cout << "\n";
     system("pause");
     return EXIT_SUCCESS;      
              
	}   
        else
        {
                  cout << "Pass Incorrect";
                  cout << "\n";
				  goto: pstart;
        }
P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
undeclared identifier, and i'm not sure what you did here, basically how my normal code worked, was when you typed in the correct pass, it would just say Hello, and exit, well i want it to continue onto my actual threads, but at the same time, keep where if you do the wrong password, it says, enter correct one, and you have to re open the program, this didn't work, as in it said undeclared identifier, and i don't really even understand what you did there, as in, it should just be telling it to go to the first thread and on from there?


- - - Updated - - -

Quote Originally Posted by Block4o View Post
Try this, PSEUDO CODE I haven't tested it but it must work:
Code:
int main()
{
 string password1="password";
 string password;
 pstart:
 cout << "NotFire Private Pass: " ;
 cin >> password;
 
 if (password == password1)
	{
     cout << "Hello";
     cout << "\n";
     system("pause");
     return EXIT_SUCCESS;      
              
	}   
        else
        {
                  cout << "Pass Incorrect";
                  cout << "\n";
				  goto: pstart;
        }
P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
i also tried if (password == password1) then goto int main; or goto main;


- - - Updated - - -

Quote Originally Posted by Block4o View Post
Try this, PSEUDO CODE I haven't tested it but it must work:
Code:
int main()
{
 string password1="password";
 string password;
 pstart:
 cout << "NotFire Private Pass: " ;
 cin >> password;
 
 if (password == password1)
	{
     cout << "Hello";
     cout << "\n";
     system("pause");
     return EXIT_SUCCESS;      
              
	}   
        else
        {
                  cout << "Pass Incorrect";
                  cout << "\n";
				  goto: pstart;
        }
P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
i've also tried a "continue" but that would continue though the code as if it got the wrong password, i'm at my witts end xD
Code:
#include <iostream>
#include <string>

using namespace std;

int main()
{
	string password1 = "password";
	string password;

	cout << "NotFire Private Pass: ";
	cin >> password;

	if (password != password1)
	{
		cin.ignore(1024, '\n');				//
		cout << "Press enter to exit...\n";		//	This is System("Pause") alternative
		cin.get();					 //
		return 0; // you can use exit(0) if you want here
	}
	
	cout << "Hello!\n";
	cin.ignore(1024, '\n');
	cout << "Press enter to continue...\n";	
	cin.get();
	// Here goes your other code... threads and etc.
}
P.M me if you want me to explain something, I tested the code and it works fine
I dont understand a thing that says
I think I understood it, the code I gave simply does this:
1. If the password is wrong... Exit the whole program.
2. If the password is right ... continue doing whatever it is supposed to do

There are maybe better ways of writing this, but I don't have much time and this works
Quote Originally Posted by Block4o View Post
I think I understood it, the code I gave simply does this:
1. If the password is wrong... Exit the whole program.
2. If the password is right ... continue doing whatever it is supposed to do

There are maybe better ways of writing this, but I don't have much time and this works
ill try that out in a bit, but i just places the threads in side the if and right after that, and then the else, now ima try that.


- - - Updated - - -

Quote Originally Posted by Block4o View Post
I think I understood it, the code I gave simply does this:
1. If the password is wrong... Exit the whole program.
2. If the password is right ... continue doing whatever it is supposed to do

There are maybe better ways of writing this, but I don't have much time and this works
i got it to work, thanks, for you helping me, but all i had to do was place my threads after the if statement, and i got it working 100% and even in game!
Code:
void CorrectPassword(){
	printf("Password correct.\n");
	thread t1(togglesnotfire);
	thread t2(glowespnotfire);
	thread t4(triggernotfire);
	thread t6(bhopnotfire);
	notfire();
	Mem.Process("csgo.exe");
	ClientDll = Mem.Module("client.dll");
	t1.join();
	t2.join();
	t4.join();
	t4.join();
}
int main(){
	std::string password1 = "password";
	printf("NotFire Private Pass: ");
	std::string password;
	std::cin >> password;
	if (password == password1) CorrectPassword();
	else printf("Incorrect password.\n");
	return 0;
}
Quote Originally Posted by Chris View Post
Code:
void CorrectPassword(){
	printf("Password correct.\n");
	thread t1(togglesnotfire);
	thread t2(glowespnotfire);
	thread t4(triggernotfire);
	thread t6(bhopnotfire);
	notfire();
	Mem.Process("csgo.exe");
	ClientDll = Mem.Module("client.dll");
	t1.join();
	t2.join();
	t4.join();
	t4.join();
}
int main(){
	std::string password1 = "password";
	printf("NotFire Private Pass: ");
	std::string password;
	std::cin >> password;
	if (password == password1) CorrectPassword();
	else printf("Incorrect password.\n");
	return 0;
}
i got it to work, i just placed the threads after the if statement.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us