コード例 #1
0
        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);
        }
コード例 #2
0
        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
ファイル: Api.cs プロジェクト: Zeziroth/Zeziroth-Simple-Menu
        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
ファイル: Api.cs プロジェクト: Zeziroth/Zeziroth-Simple-Menu
        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;
                }
            }
        }