Solved Why isnt my CS:GO Trigger bot working?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

SDk

Newbie
Full Member
Nov 12, 2016
6
52
0
I am trying to make a triggerbot for CS:GO and it doesnt seem to be working..

Here is the code:
C++:
using System;
using System.Threading;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace TriggerBot
{
    class Program
    {

        public static int oLocalPlayer = 0x00A8F53C;
        public static int oEntityList = 0x04AB0F94;
        public static int oCrossHairID = 0x0000AA58;
        public static int oTeam = 0x000000F0;
        public static int oHealth = 0x000000FC;
        public static int oAttack = 0x02EF0F98;
        public static int oEntityLoopDistance = 0x00000010;

        public static int Client;
        public static int bClient;
        public static String process = "csgo";


        static void Main(string[] args)
        {

            VAMemory vam = new VAMemory(process);

            if (GetModuleAddy())
            {
                int fAttack = bClient + oAttack;

                while (true)
                {
                    Console.Clear();
                    Console.Write("Nothing..");

                    int address = bClient + oLocalPlayer;
                    int LocalPlayer = vam.ReadInt32((IntPtr)address);

                    address = LocalPlayer + oTeam;
                    int MyTeam = vam.ReadInt32((IntPtr)address);

                    address = LocalPlayer + oCrossHairID;
                    int PlayerInCross = vam.ReadInt32((IntPtr)address);

                    if (PlayerInCross > 0 && PlayerInCross > 65)
                    {
                        address = bClient + oEntityList + (PlayerInCross - 1) * oEntityLoopDistance;
                        int PtrToPIC = vam.ReadInt32((IntPtr)address);

                        address = PtrToPIC + oHealth;
                        int PICHealth = vam.ReadInt32((IntPtr)address);

                        address = PtrToPIC + oTeam;
                        int PICTeam = vam.ReadInt32((IntPtr)address);

                        if ((PICTeam != MyTeam) && (PICTeam > 1) && (PICHealth > 0))
                        {
                            Console.Clear();
                            Console.Write("Shooting!");
                            vam.WriteInt32((IntPtr)fAttack, 1);
                            Thread.Sleep(1);
                            vam.WriteInt32((IntPtr)fAttack, 4);
                        }
                        if ((PICTeam == MyTeam))
                        {
                            Console.WriteLine("Looking at team");
                        }
                    }
                    Thread.Sleep(10);
                }
            }
        }

        static bool GetModuleAddy()
        {
            try
            {
                Process[] p = Process.GetProcessesByName(process);

                if (p.Length > 0)
                {
                    foreach (ProcessModule m in p[0].Modules)
                    {
                        if (m.ModuleName == "client.dll")
                        {
                            Client = (int)m.BaseAddress;
                            return true;
                        }
                    }
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch (Exception ex)
            {
                return false;
            }
        }
    }
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,140
78,998
2,394
If you copy and pasted that code, your offsets are probably wrong. You can learn how to find offsets using our tutorials
 

r4z0r

Coder
Meme Tier VIP
Jul 21, 2016
246
2,678
13
Dude, don't make repost, it's not necessary... And don't ask things like this: "It's not working, fix this to me: 'copy paste code' ". Explain better what's going on, debug your code...
 

Teuvin

now I am become Death
Dank Tier VIP
Trump Tier Donator
Dec 8, 2016
403
10,388
65
How I wish you were banned from csgo just for leeching HazardEdit you just simply copied and pasted every single line in the code of course it's not working, the offsets are outdated.
 

KISKE

Game Developer
Meme Tier VIP
Fleep Tier Donator
Jul 27, 2016
168
3,938
16
I don't know anything about TriggerBots, but this condition doesn't make much sense.

C++:
if (PlayerInCross > 0 && PlayerInCross > 65)
I think it is:

C++:
if(PlayerInCross > 0 && PlayerInCross < 65)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods