Results 1 to 2 of 2
  1. #1
    darkersideXxX's Avatar
    Join Date
    Dec 2016
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Trigger Bot Problem in C#

    When my crosshair point at my teammates and enemy it also will auto shoot... Any problem in my code?
    How to fix friendly fire occur?



    Code:
    public static void triggered()
            {
                MemoryManagment mem = new MemoryManagment();
                if (!mem.Initialize())
                {
                    Console.ReadKey();
                    Environment.Exit(-1);
                }
    
                while (true)
                {
                    uint pLocal = mem.Read<uint>((IntPtr)(mem.clientBaseAddres.ToInt64() + Offsets.m_dwLocalPlayer));
                    int myTeam = mem.Read<int>((IntPtr)(pLocal + Offsets.team));
                    int crossID = mem.Read<int>((IntPtr)(pLocal + Offsets.m_iCrossHairID));              
                    if (crossID < 64 && crossID > 0)
                    {
    
    
                        if (toggle)
                        {
                            Thread.Sleep(delay);
    
                            mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                            Thread.Sleep(delay);
                            mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
                        }
                        else if (!toggle)
                        {
                            //   Console.WriteLine("Wait!");
                        }
                    }
                    Thread.Sleep(1);
                }
            }

  2. #2
    Zaczero's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    localhost
    Posts
    3,288
    Reputation
    1517
    Thanks
    14,262
    My Mood
    Angelic
    you have to get the entity from crosshair id, read his team and compare with the local one
    . . . malsignature.com . . .



    [ global rules ] [ scam report ] [ image title ] [ name change ] [ anime force ]
    [ league of legends marketplace rules ] [ battlefield marketplace rules ]

    "because everytime you post a picture of anime in here
    your virginity's time increases by 1 month"
    ~Smoke 2/18/2018


    Former Staff 09-29-2018
    Battlefield Minion 07-21-2018
    Premium Seller 03-04-2018
    Publicist 12-10-2017
    League of Legends Minion 05-31-2017
    Premium 02-05-2017
    Member 10-13-2013

Similar Threads

  1. My 5th trigger bot
    By dark_byte70 in forum General Hacking
    Replies: 7
    Last Post: 10-26-2012, 02:15 PM
  2. [Bot Release] Simple Trigger Bot
    By blah in forum Combat Arms Hacks & Cheats
    Replies: 57
    Last Post: 08-20-2008, 10:05 AM
  3. Whats trigger bot?
    By apeguy in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-14-2008, 07:22 PM
  4. Trigger Bot
    By thiag00 in forum Visual Basic Programming
    Replies: 0
    Last Post: 05-01-2008, 07:15 PM
  5. Fucken Trigger Bot!
    By nukeist_ in forum Flaming & Rage
    Replies: 4
    Last Post: 01-19-2008, 12:23 PM