Thread: Toggle Problem

Results 1 to 10 of 10
  1. #1
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad

    Toggle Problem

    fixed

    //2short
    Last edited by sup h0wl; 09-04-2015 at 12:02 AM.

  2. #2
    WasserEsser's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    735
    Reputation
    174
    Thanks
    677
    My Mood
    Busy
    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.

  3. #3
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    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

  4. #4
    PhY'z's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    518
    Reputation
    58
    Thanks
    1,310
    My Mood
    Angelic
    Quote Originally Posted by h0wl-senpai 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
    }
    }
    }
    Contact with me in any question...


    Hi (:

  5. #5
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    Quote Originally Posted by Adri308 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

  6. #6
    PhY'z's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    518
    Reputation
    58
    Thanks
    1,310
    My Mood
    Angelic
    Quote Originally Posted by h0wl-senpai View Post
    its fixed now man. haha
    I know ahhah i psted at the same time you edited
    Contact with me in any question...


    Hi (:

  7. #7
    asuchan's Avatar
    Join Date
    Aug 2015
    Gender
    female
    Posts
    74
    Reputation
    19
    Thanks
    24
    You all should be checking NextPrimaryAttack, then again, idk if anybody on here actually knows how to do that lol

  8. #8
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    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

  9. #9
    hurenzohnkiller's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    53
    You guys shouldnt help him, he sells copypasted cheats, he uses sources from here and sells it lmao

  10. #10
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    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?
    Last edited by sup h0wl; 09-04-2015 at 04:37 PM.

Similar Threads

  1. I have a problem with my hacks they keep toggling off
    By iFlightBLR in forum BlackLight Retribution Hacks
    Replies: 1
    Last Post: 08-23-2013, 09:55 PM
  2. To All GunZ Down 02-07-06 PROBLEM
    By WertyRO in forum Gunz General
    Replies: 18
    Last Post: 02-09-2006, 07:41 PM
  3. hacking problems
    By iwillkillyou in forum WarRock - International Hacks
    Replies: 11
    Last Post: 02-04-2006, 04:37 PM
  4. WPE problem...
    By styx23 in forum General Game Hacking
    Replies: 8
    Last Post: 01-18-2006, 07:51 PM
  5. Problem Wit Hacking Programs
    By f5awp in forum General Gaming
    Replies: 5
    Last Post: 01-10-2006, 05:44 AM