Results 1 to 2 of 2
  1. #1
    jokjok123's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    198
    Reputation
    10
    Thanks
    108

    Question What is wrong with this memory triggerbot?

    Code:
    void Trigger()
    {
    	DWORD LocalPlayer = Read<DWORD>(ChromeClient + 0x00A8C53C);
    	int LocalTeam = Read<int>(LocalPlayer + 0xF0);
    	int CrossHairID = Read<int>(LocalPlayer + 0xAA58);
    	DWORD EnemyInCH = Read<DWORD>(ChromeClient + 0x04ADDC04 + ((CrossHairID - 1) * 0x10)); // CH = Crosshair.
    	int EnemyHealth = Read<int>(EnemyInCH + 0xFC); // Enemy in crosshair's 
    	int EnemyTeam = Read<int>(EnemyInCH + 0xF0); // Enemy in crosshair's team, we need this to compare it to our own player's team)
    
    	if (LocalTeam != EnemyTeam && EnemyHealth > 0)
    	{
    		cout << "Trigger2" << endl;
    		// Here you can add a delay before shooting, to make it look legit. This is done using Sleep()
    		mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
    		// use Sleep() here for shooting several shots with an ak for example. Not usable with pisto
    		mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
    		// use Sleep() here for a 'cooldown' between shots.
    	}
    }

  2. The Following User Says Thank You to jokjok123 For This Useful Post:

    Nine11 (02-13-2017)

  3. #2
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Been over a week since last update/bump after no answers, assuming unresolved.

    /Closed.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. [Help] What is wrong with this triggerbot? It doest shoot or target!
    By jokjok123 in forum Counter-Strike 2 Coding & Resources
    Replies: 3
    Last Post: 10-25-2016, 02:29 PM
  2. [Help] What is wrong with this memory triggerbot?
    By jokjok123 in forum Counter-Strike 2 Coding & Resources
    Replies: 2
    Last Post: 10-25-2016, 02:29 PM
  3. [Help] What is wrong with this triggerbot?
    By jokjok123 in forum Counter-Strike 2 Coding & Resources
    Replies: 1
    Last Post: 10-23-2016, 06:11 PM
  4. what is wrong with this ??
    By floris12345! in forum Visual Basic Programming
    Replies: 5
    Last Post: 01-16-2008, 05:22 PM
  5. what is wrong with this source?
    By Petros in forum C++/C Programming
    Replies: 6
    Last Post: 07-04-2007, 04:33 PM