Esempio n. 1
0
        private static void FlatSDK_DrawGraphics(object sender, DrawGraphicsEventArgs e)
        {
            var gfx = e.Graphics;

            if (ESPOptions.bSaveBTN == 1)
            {
                SerializeStatic.Serialize(typeof(ESPOptions), "ESPCFG.xml");
                ESPOptions.bSaveBTN = 0;
            }
            if (ESPOptions.bLoadBTN == 1)
            {
                SerializeStatic.Deserialize(typeof(ESPOptions), "ESPCFG.xml");
                ESPOptions.bLoadBTN = 0;
            }


            LocalPlayer = FlatSDK.GetLocalPlayer();

            if (LocalPlayer == null)
            {
                return;
            }
            if (LocalPlayer.extra == null)
            {
                return;
            }

            foreach (var ent in FlatSDK.GetEntities())
            {
                if (ent.type != 82)
                {
                    continue;
                }

                DrawBlip(gfx, ent);
            }
        }
Esempio n. 2
0
 private static FlatSDKInternal.Entity[] GetEntitiesAsArray()
 {
     return(new List <FlatSDKInternal.Entity>(FlatSDK.GetEntities()).ToArray());
 }