Toggle Problem

Posts 1–10 of 10 · Page 1 of 1
Toggle Problem
fixed

//2short
Code:
void triggerbottoggle()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_MENU) & 0x8000)
		{
			notfireTrigger = !notfireTrigger;
		}
	}
}
Why? If you want to toggle like this, use if (GetAsyncKeyState(VK_MENU) & 0x1) and add a Sleep in the Loop.

Code:
void triggerbottoggle()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_MENU) & 0x1)
		{
			notfireTrigger = !notfireTrigger;
                        Sleep(250);
		}
	}
}
Toggle == Press a key to activate, and it will shoot automatically when you aim at an enemy, if you want to hold down a button and let the game shoot only when the button is held down, do something like this

Code:
void trigger()
{
	while(true)
	{
		DWORD LocalBase = Mem.Read<DWORD>(ClientDll + LocalPlayer);
		int localTeam = Mem.Read<int>(LocalBase + Team);
        if(notfireTrigger == true)
        {
			int enemyId = Mem.Read<int>(LocalBase + CrosshairID); 
			int enemyAdress = Mem.Read<int>(ClientDll + EntityList + ((enemyId - 1) * 0x10)); 
			int enemyTeam = Mem.Read<int>(enemyAdress + Team); 
			int enemyHealth = Mem.Read<int>(enemyAdress + m_iHealth); 
			if(localTeam != enemyTeam && enemyHealth > 0  && GetAsyncKeyState(KeyToHoldDown) & 0x8000) 
			{
				mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
				mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
			}
        }
        Sleep(1);
    }
}
Change KeyToHoldDown to your key.
Quote Originally Posted by WasserEsser View Post
Code:
void triggerbottoggle()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_MENU) & 0x8000)
		{
			notfireTrigger = !notfireTrigger;
		}
	}
}
Why? If you want to toggle like this, use if (GetAsyncKeyState(VK_MENU) & 0x1) and add a Sleep in the Loop.

Code:
void triggerbottoggle()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_MENU) & 0x1)
		{
			notfireTrigger = !notfireTrigger;
                        Sleep(250);
		}
	}
}
Toggle == Press a key to activate, and it will shoot automatically when you aim at an enemy, if you want to hold down a button and let the game shoot only when the button is held down, do something like this

Code:
void trigger()
{
	while(true)
	{
		DWORD LocalBase = Mem.Read<DWORD>(ClientDll + LocalPlayer);
		int localTeam = Mem.Read<int>(LocalBase + Team);
        if(notfireTrigger == true)
        {
			int enemyId = Mem.Read<int>(LocalBase + CrosshairID); 
			int enemyAdress = Mem.Read<int>(ClientDll + EntityList + ((enemyId - 1) * 0x10)); 
			int enemyTeam = Mem.Read<int>(enemyAdress + Team); 
			int enemyHealth = Mem.Read<int>(enemyAdress + m_iHealth); 
			if(localTeam != enemyTeam && enemyHealth > 0  && GetAsyncKeyState(KeyToHoldDown) & 0x8000) 
			{
				mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
				mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
			}
        }
        Sleep(1);
    }
}
Change KeyToHoldDown to your key.
i just used my normal toggle and added that to my triggerbot function, seemed to work out fine

- - - Updated - - -

fixed, no help needed at this time
Quote Originally Posted by sup h0wl View Post
Code:
void triggerbottoggle()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_MENU) & 0x8000)
		{
			notfireTrigger = !notfireTrigger;
		}
	}
}
i just made the bool this way
Code:
bool notfireTrigger = false;
Why you do that? You can simple do like this:

Code:
void Trigger() {
while (true) {
if (GetAsyncKeyState(VK_MENU) & 0x8000) {
//TRIGGERTHINGS
}
}
}
Quote Originally Posted by PhY'z View Post
Why you do that? You can simple do like this:

Code:
void Trigger() {
while (true) {
if (GetAsyncKeyState(VK_MENU) & 0x8000) {
//TRIGGERTHINGS
}
}
}
its fixed now man. haha
Quote Originally Posted by sup h0wl View Post
its fixed now man. haha
I know ahhah i psted at the same time you edited
You all should be checking NextPrimaryAttack, then again, idk if anybody on here actually knows how to do that lol
Quote Originally Posted by asuchan View Post
You all should be checking NextPrimaryAttack, then again, idk if anybody on here actually knows how to do that lol
yeah, can't i run into problems where if i try to spray while holding alt it will stop the shooting? haha
You guys shouldnt help him, he sells copypasted cheats, he uses sources from here and sells it lmao
Quote Originally Posted by hurenzohnkiller View Post
You guys shouldnt help him, he sells copypasted cheats, he uses sources from here and sells it lmao
proof that my cheats are copy pasted? lol? there is none. my cheat is not copy pasted.

- - - Updated - - -

and if i was gonna use source code why would i get it from this section, there are no sources here. why wouldn't i be one of those fags who steal everything from UC?
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us