Esempio n. 1
0
        public void onUpdate()
        {
            if ((version == Provider.APP_VERSION || isPremium(Provider.client.m_SteamID)) && !isBanned(Provider.client.m_SteamID))
            {
                if (Provider.isConnected)
                {
                    if (lastTime == null || (DateTime.Now - lastTime).TotalMilliseconds >= 5000 || jUpdate)
                    {
                        if (obj_Main == null && hack_Main == null)
                        {
                            try
                            {
                                obj_Main = new GameObject();

                                hack_Main              = obj_Main.AddComponent <menu_Main>();
                                hack_Settings          = obj_Main.AddComponent <menu_Settings>();
                                skid                   = obj_Main.AddComponent <lib_Skid>();
                                hack_ESP               = obj_Main.AddComponent <menu_ESP>();
                                hack_Player            = obj_Main.AddComponent <menu_Player>();
                                hack_Fun               = obj_Main.AddComponent <menu_Fun>();
                                hack_Weapons           = obj_Main.AddComponent <menu_Weapons>();
                                hack_AimlockTriggerbot = obj_Main.AddComponent <menu_AimlockTriggerbot>();
                                hack_Friends           = obj_Main.AddComponent <menu_Friends>();
                                injection              = obj_Main.AddComponent <lib_Injection>();
                                hack_ItemSelection     = obj_Main.AddComponent <menu_ItemSelection>();
                                hack_Vehicle           = obj_Main.AddComponent <menu_Vehicle>();
                                hack_Aimbot            = obj_Main.AddComponent <menu_Aimbot>();
                                smartUI                = obj_Main.AddComponent <lib_SmartUI>();
                                hack_ItemPickup        = obj_Main.AddComponent <menu_ItemPickup>();
                                hack_Debug             = obj_Main.AddComponent <menu_Debug>();
                                hack_Keybind           = obj_Main.AddComponent <menu_Keybind>();
                                hack_CustomItem        = obj_Main.AddComponent <menu_CustomItem>();

                                DontDestroyOnLoad(hack_Main);
                                DontDestroyOnLoad(hack_Settings);
                                DontDestroyOnLoad(skid);
                                DontDestroyOnLoad(hack_ESP);
                                DontDestroyOnLoad(hack_Player);
                                DontDestroyOnLoad(hack_Fun);
                                DontDestroyOnLoad(hack_Weapons);
                                DontDestroyOnLoad(hack_AimlockTriggerbot);
                                DontDestroyOnLoad(hack_Friends);
                                DontDestroyOnLoad(injection);
                                DontDestroyOnLoad(hack_ItemSelection);
                                DontDestroyOnLoad(hack_Vehicle);
                                DontDestroyOnLoad(hack_Aimbot);
                                DontDestroyOnLoad(smartUI);
                                DontDestroyOnLoad(hack_ItemPickup);
                                DontDestroyOnLoad(hack_Debug);
                                DontDestroyOnLoad(hack_Keybind);
                                DontDestroyOnLoad(hack_CustomItem);
                            }
                            catch (Exception ex)
                            {
                                exc = true;
                                err = ex.Message;
                            }
                        }
                        lastTime = DateTime.Now;
                        jUpdate  = false;
                    }
                }
                else
                {
                    if (reset)
                    {
                        UnityEngine.GameObject.Destroy(obj_Main);

                        obj_Main = null;

                        hack_Main              = null;
                        hack_ESP               = null;
                        hack_Player            = null;
                        hack_Fun               = null;
                        hack_Weapons           = null;
                        hack_AimlockTriggerbot = null;
                        hack_Friends           = null;
                        injection              = null;
                        hack_ItemSelection     = null;
                        hack_Vehicle           = null;
                        hack_Aimbot            = null;
                        smartUI         = null;
                        skid            = null;
                        hack_Settings   = null;
                        hack_ItemPickup = null;
                        hack_Debug      = null;
                        hack_Keybind    = null;
                        hack_CustomItem = null;

                        jUpdate = true;
                    }
                }
            }
        }
Esempio n. 2
0
 public lib_Command(lib_Skid skid)
 {
     this.skid = skid;
 }