public static List <GTA5Entity> GetAttackers()
        {
            List <GTA5Entity> entitys = new List <GTA5Entity>();

            for (int i = 0; i < 3; i++)
            {
                GTA5Entity entity = new GTA5Entity(i);
                if (entity.Get_PosX() != 0f)
                {
                    entitys.Add(entity);
                }
            }
            return(entitys);
        }
        public List <GTA5Entity> Attackers()
        {
            List <GTA5Entity> entitys = new List <GTA5Entity>();

            for (int i = 0; i < 3; i++)
            {
                GTA5Entity entity = new GTA5Entity(i, false, _baseAddr);
                if (entity.structs.GetValue <string>("") == "")
                {
                    entitys.Add(entity);
                }
            }
            return(entitys);
        }
示例#3
0
        public void PEDDrop_Start()
        {
            peddrop = true;
            float x = World.structs.GetValue <float>("POS_X");
            float y = World.structs.GetValue <float>("POS_Y");
            float z = World.structs.GetValue <float>("POS_Z");

            while (peddrop)
            {
                try
                {
                    IntPtr PEDCount    = Base.GetPtr(Base.pedListPTR, new int[] { 0x110 });
                    int    maxPED      = Memory.Read <int>(PEDCount.ToInt64());
                    IntPtr v26         = Base.GetPtr(Base.pedListPTR, new int[] { 0x100 });
                    IntPtr localPlayer = Base.GetPtr(Base.WorldPTR, new int[] { 0x8 });

                    for (int i = 0; i < maxPED; i++)
                    {
                        //Thanks to kiddion
                        IntPtr v6  = Base.GetPtr(v26, new int[] { i * 0x10 });
                        IntPtr v24 = Base.GetPtr(v6, new int[] { 0x30 });
                        IntPtr v23 = Base.GetPtr(v6, new int[] { 0x20 });
                        IntPtr v5  = Base.GetPtr(v23, new int[] { 0x270 });

                        if (Memory.Read <byte>(v5.ToInt64()) == 77)
                        {
                            GTA5Entity ped = new GTA5Entity(v6);
                            if (ped.Get_Health() > 200f || ped.Get_Health() == 0f)
                            {
                                continue;
                            }
                            ped.structs.SetValue("iCash", (int)Form1.frm.Numeric_PED_Value.Value);

                            ped.Kill();
                            ped.TeleportTo(x, y, z);
                        }
                    }
                }
                catch
                {
                    continue;
                }
            }
        }
示例#4
0
        public void Untouchable_Start()
        {
            untouchable = true;

            while (untouchable)
            {
                try
                {
                    List <GTA5Entity> attackers = GTA5Entity.GetAttackers();

                    foreach (GTA5Entity attacker in attackers)
                    {
                        attacker.KillAll();
                    }

                    Thread.Sleep(300);
                }
                catch
                {
                    continue;
                }
            }
        }