Ejemplo n.º 1
0
        public unsafe void Run(RemoteHooking.IContext context)
        {
            Thread.CurrentThread.SetApartmentState(ApartmentState.STA);

            WinApi.AllocConsole();
            Display.Init();
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Magenta;

            //VpkParser.Do();
            //return;

            Display.UnderLine("=====| SharpSkin |=====\n", ConsoleColor.DarkGreen);
            Init();

            //new Task(Features.TriggerBot.Do).Start();

            //weapons.ReadyConfig();
            //CustomSkins.Init();

            #region Loop
            while (!bUnload)
            {
                try
                {
                    if (Keyboard.IsKeyDown(Key.Insert))
                    {
                        if (!form.Visible)
                        {
                            new Task(() => form.ShowDialog()).Start();
                        }
                        else
                        {
                            new MethodInvoker(form.Hide).BeginInvoke(null, null);
                        }
                        Thread.Sleep(150);
                    }
                    if (Keyboard.IsKeyDown(Key.Delete))
                    {
                        if (form.Visible)
                        {
                            form.Hide();
                        }
                        break;
                    }

                    /*
                     * if (Keyboard.IsKeyDown(Key.A))
                     *  Console.WriteLine(g_MdlCache.FindModel("models/weapons/custom_t.mdl"));
                     * if (Keyboard.IsKeyDown(Key.E))
                     *  Console.WriteLine(g_MdlCache.FindModel("models/weapons/v_snip_awp.mdl"));
                     */
                }
                catch (Exception ex) { Console.WriteLine(ex); }
            }
            #endregion

            Dispose();
            Console.WriteLine("Unloaded.");
        }
Ejemplo n.º 2
0
        public static unsafe void Execute()
        {
            try
            {
                WinApi.AllocConsole();
                Display.Init();
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Magenta;

                //VpkParser.Do();
                //return;
                Display.UnderLine("=====| SharpSkin |=====\n", ConsoleColor.DarkGreen);
                Init();

                //new Task(Features.TriggerBot.Do).Start();

                //weapons.ReadyConfig();
                //CustomSkins.Init();

                #region Loop
                while (!bUnload)
                {
                    if (Keyboard.IsKeyDown(Key.Insert))
                    {
                        if (!form.Visible)
                        {
                            new Task(() => form.ShowDialog()).Start();
                        }
                        else
                        {
                            new MethodInvoker(form.Hide).BeginInvoke(null, null);
                        }
                        Thread.Sleep(150);
                    }
                    if (Keyboard.IsKeyDown(Key.Delete))
                    {
                        if (form.Visible)
                        {
                            form.Hide();
                        }
                        break;
                    }
                }
                #endregion

                Dispose();
                Console.WriteLine("Unloaded.");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }