Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Hybrid View

  1. #1
    jumboperson187's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    883

    Basis for a Hack Menu Using Unity

    I wrote a small base for unturned/unity hack menus.
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using UnityEngine;
    public class Hacks : MonoBehaviour
    {
        bool            hack            = false;
        bool            esp             = true;
        float           scrHeight       = Screen.height;
        int selection = 1;
        int maxSelect = 4;
        float           scrWidth        = Screen.width;
        void Start()
        {
    
        }
        
        void Update()
        {
            //Keycode hack activation
            if (Input.GetKeyDown(KeyCode.Insert))
            {
                hack = !hack;
            }
            if (hack)
            {
                if(Input.GetKeyDown(KeyCode.DownArrow))
                {
                    if (selection != maxSelect)
                    {
                        selection += 1;
                    }
                    else
                    {
                        if (selection == maxSelect)
                        {
                            selection = 1;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.UpArrow))
                {
                    if (selection != 1)
                    {
                        selection -= 1;
                    }
                    else
                    {
                        if (selection == 1)
                        {
                            selection = maxSelect;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.RightControl))
                {
                    if (selection == 1)
                    {
                        selection1();
                    }
                    else
                    {
                        if (selection == 2)
                        {
                            selection2();
                        }
                        else
                        {
                            if (selection == 3)
                            {
                                selection3();
                            }
                            else
                            {
                                if (selection == 4)
                                {
                                    selection4();
                                }
                                else
                                {
    
                                }
                            }
                        }
                    }
                }
            }
    
        }
        // FUNCTIONS
        void selection1()
        {
            
        }
    
        void selection2()
        {
            
        }
        
        void selection3()
        {
            
        }
    
        void selection4()
        {
            
        }
    
        void OnGUI()
        {
            //Nice GUI
            GUI.color = Color.magenta;
            GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
            GUI.color = Color.white;
            if (hack)
            {
                GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
                if (selection == 1)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
                if (selection == 2)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
                if (selection == 3)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 380, 100, 30), "Selection3");
    
                if (selection == 4)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 410, 100, 30), "Selection4");
    
            }
        }
    }
    If anyone releases a menu using this I would appreciate a small credit. Thanks
    Last edited by Hunter; 01-18-2016 at 11:39 AM.

  2. The Following 4 Users Say Thank You to jumboperson187 For This Useful Post:

    AlexGeoZz1 (07-31-2014),Cabbager001 (08-03-2014),jimmybe29 (07-31-2014),KastOn_Bag (12-24-2014)

  3. #2
    AlexGeoZz1's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    137
    Reputation
    10
    Thanks
    827
    Thanks man ! Ima get to work

  4. #3
    sagarmadan's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    I made it and compiled successfully but now i have no idea how to load it in game :/
    can someone help ?

    - - - Updated - - -

    bro i am new here, can you help me a bit with load that menu in game ?
    i compiled it but i don't know what to do next :/
    thanks

  5. #4
    LordNature's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    1,171
    My Mood
    Amazed
    Quote Originally Posted by jumboperson187 View Post
    I wrote a small base for unturned/unity hack menus.
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using UnityEngine;
    public class Hacks : MonoBehaviour
    {
        bool            hack            = false;
        bool            esp             = true;
        float           scrHeight       = Screen.height;
        int selection = 1;
        int maxSelect = 4;
        float           scrWidth        = Screen.width;
        void Start()
        {
    
        }
        
        void Update()
        {
            //Keycode hack activation
            if (Input.GetKeyDown(KeyCode.Insert))
            {
                hack = !hack;
            }
            if (hack)
            {
                if(Input.GetKeyDown(KeyCode.DownArrow))
                {
                    if (selection != maxSelect)
                    {
                        selection += 1;
                    }
                    else
                    {
                        if (selection == maxSelect)
                        {
                            selection = 1;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.UpArrow))
                {
                    if (selection != 1)
                    {
                        selection -= 1;
                    }
                    else
                    {
                        if (selection == 1)
                        {
                            selection = maxSelect;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.RightControl))
                {
                    if (selection == 1)
                    {
                        selection1();
                    }
                    else
                    {
                        if (selection == 2)
                        {
                            selection2();
                        }
                        else
                        {
                            if (selection == 3)
                            {
                                selection3();
                            }
                            else
                            {
                                if (selection == 4)
                                {
                                    selection4();
                                }
                                else
                                {
    
                                }
                            }
                        }
                    }
                }
            }
    
        }
        // FUNCTIONS
        void selection1()
        {
            
        }
    
        void selection2()
        {
            
        }
        
        void selection3()
        {
            
        }
    
        void selection4()
        {
            
        }
    
        void OnGUI()
        {
            //Nice GUI
            GUI.color = Color.magenta;
            GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
            GUI.color = Color.white;
            if (hack)
            {
                GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
                if (selection == 1)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
                if (selection == 2)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
                if (selection == 3)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 380, 100, 30), "Selection3");
    
                if (selection == 4)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 410, 100, 30), "Selection4");
    
            }
        }
    }
    If anyone releases a menu using this I would appreciate a small credit. Thanks
    Trying to learn C# at the moment :P. Any tips?

  6. #5
    jumboperson187's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    883
    Quote Originally Posted by LordNature View Post
    Trying to learn C# at the moment :P. Any tips?
    Same as every other language but with different functions. Relatively simple. I taught myself C++ and then C# was easy.

  7. #6
    LordNature's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    1,171
    My Mood
    Amazed
    Quote Originally Posted by jumboperson187 View Post
    Same as every other language but with different functions. Relatively simple. I taught myself C++ and then C# was easy.
    I know Java, PHP, HTML5, Sass, MySQLi, Ruby, RoR, Batch, and a little bit of Python. Will any of that help?
    Most of the languages are used for web development.

  8. #7
    jumboperson187's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    883
    Quote Originally Posted by LordNature View Post
    I know Java, PHP, HTML5, Sass, MySQLi, Ruby, RoR, Batch, and a little bit of Python. Will any of that help?
    Most of the languages are used for web development.
    Yea, all of those would help.
    Quote Originally Posted by Blueblood1 View Post
    Just seems like extra work to me.
    What does? Helping people out with a small framework? I wrote this in a solid 10 minutes that would have been spent doing something stupid otherwise.

  9. #8
    LordNature's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    1,171
    My Mood
    Amazed
    Quote Originally Posted by jumboperson187 View Post
    Yea, all of those would help.
    Also, where do I download the Titanium Devkit as well as Titanium?

  10. #9
    Blueblood1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    711
    Reputation
    132
    Thanks
    7,129
    My Mood
    Mellow
    No, the source code is great, and helping people is good. but for someone making a menu, setting it up with arrow keys is just time consuming and there is no real need for it.

  11. #10
    AlexGeoZz1's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    137
    Reputation
    10
    Thanks
    827
    Quote Originally Posted by jumboperson187 View Post
    I wrote a small base for unturned/unity hack menus.
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using UnityEngine;
    public class Hacks : MonoBehaviour
    {
        bool            hack            = false;
        bool            esp             = true;
        float           scrHeight       = Screen.height;
        int selection = 1;
        int maxSelect = 4;
        float           scrWidth        = Screen.width;
        void Start()
        {
    
        }
        
        void Update()
        {
            //Keycode hack activation
            if (Input.GetKeyDown(KeyCode.Insert))
            {
                hack = !hack;
            }
            if (hack)
            {
                if(Input.GetKeyDown(KeyCode.DownArrow))
                {
                    if (selection != maxSelect)
                    {
                        selection += 1;
                    }
                    else
                    {
                        if (selection == maxSelect)
                        {
                            selection = 1;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.UpArrow))
                {
                    if (selection != 1)
                    {
                        selection -= 1;
                    }
                    else
                    {
                        if (selection == 1)
                        {
                            selection = maxSelect;
                        }
                    }
                }
                
                if (Input.GetKeyDown(KeyCode.RightControl))
                {
                    if (selection == 1)
                    {
                        selection1();
                    }
                    else
                    {
                        if (selection == 2)
                        {
                            selection2();
                        }
                        else
                        {
                            if (selection == 3)
                            {
                                selection3();
                            }
                            else
                            {
                                if (selection == 4)
                                {
                                    selection4();
                                }
                                else
                                {
    
                                }
                            }
                        }
                    }
                }
            }
    
        }
        // FUNCTIONS
        void selection1()
        {
            
        }
    
        void selection2()
        {
            
        }
        
        void selection3()
        {
            
        }
    
        void selection4()
        {
            
        }
    
        void OnGUI()
        {
            //Nice GUI
            GUI.color = Color.magenta;
            GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
            GUI.color = Color.white;
            if (hack)
            {
                GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
                if (selection == 1)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
                if (selection == 2)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
                if (selection == 3)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 380, 100, 30), "Selection3");
    
                if (selection == 4)
                {
                    GUI.color = Color.red;
                }
                else
                {
                    GUI.color = Color.white;
                }
                GUI.Label(new Rect(10, 410, 100, 30), "Selection4");
    
            }
        }
    }
    If anyone releases a menu using this I would appreciate a small credit. Thanks

    Love this ! Really nice gui bro with a few tweaks I got it lookin sexy

  12. #11
    Blueblood1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    711
    Reputation
    132
    Thanks
    7,129
    My Mood
    Mellow
    Just seems like extra work to me.

  13. #12
    duongthihoavn1990's Avatar
    Join Date
    Jul 2014
    Gender
    female
    Posts
    7
    Reputation
    10
    Thanks
    0
    Website c?a bên mình hình nhu code gi?ng website c?a b?n, b?n th? qua tham kh?o website c?a mình xem "bepthaison.vn"

  14. #13
    AlexGeoZz1's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    137
    Reputation
    10
    Thanks
    827
    All we need now is source codes to add into the base

  15. #14
    Kunii's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Norway
    Posts
    153
    Reputation
    68
    Thanks
    3,816
    Eeeewww!! That code looks like shit. For future ref, don't use a ton of 'else if's..

  16. #15
    jumboperson187's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    883
    Quote Originally Posted by Kunii View Post
    Eeeewww!! That code looks like shit. For future ref, don't use a ton of 'else if's..
    I know it looks like shit, I didn't bother cleaning it up xD. I wrote it in a few minutes and it isn't bad for people with low experience to use.

    Should probably use a case machine for the selection stuff tho.

Page 1 of 2 12 LastLast

Similar Threads

  1. Looking for a hack menu that will work with 1.5.2 (new world)
    By moosenoodles in forum Minecraft Help
    Replies: 1
    Last Post: 07-15-2013, 07:05 AM
  2. How do I create a menu for my hack? And add more hacks? I used Cn's tut for hacks.
    By calvinchau309 in forum Combat Arms Coding Help & Discussion
    Replies: 11
    Last Post: 02-19-2011, 08:50 PM
  3. Can you use a working hack as a Bypass for another hack?
    By omlan in forum Combat Arms Discussions
    Replies: 2
    Last Post: 01-12-2010, 01:41 AM
  4. uses for moonwalk hack?
    By doommach in forum Combat Arms Discussions
    Replies: 25
    Last Post: 11-10-2009, 02:55 AM
  5. Tutorial - How to use Visual Basics 6 (vb6) for WarRock hacks
    By Oneirish in forum Visual Basic Programming
    Replies: 17
    Last Post: 05-26-2008, 07:24 AM

Tags for this Thread