Results 1 to 10 of 10
  1. #1
    Wizdom-X's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    526
    Reputation
    19
    Thanks
    113
    My Mood
    Amused

    Post How to add a function a MENU

    Need:

    1.A brain (to edit some text and stuff so no erro's come up)
    2.C++ Skills


    -[How to, add a function into a MENU BASE]-

    First the Option way.

    Add the Mopt witch is this:
    Code:
    char *MoptTEST1 [] = {"Off,"Premium1,"Premium2"};
    Then goto your defines and add:

    Code:
    int CH_PREMIUM = 0; //We define our CH_PREMIUM
    Then goto your source codes in your hack:

    Code:
    //1 = Bronze, 2 = Silver, 3 = Gold, 4 = Platinum
    Code:
    if (CH_PREMIUM == 1)//IF Premiumstate = 1 then
    { //Serverpointer Adress + Premium adress = 3 (Gold)
    *(float*)(dwServerPtr+Premium1) = 3; // 3 = Gold Premium
    }
    
    if (CH_PREMIUM == 2)
    {
    *(float*)(dwServerPtr+Premium1) = 4; // 4 = Platinum Premium
    }
    Then goto your addies and add:

    Code:
    #define Premium1 0x0059C // We define our adress
    Then goto your Menu text and add:
    //Class -> AddItem ("Text","/*CHAR*/ Option,&int,max value);
    Code:
    pMenu->AddItem(" Premium:", MoptTEST1, &CH_PREMIUM  , 2);
    Now the other way.

    Do all the same as the option way just instead dont add the:
    //our char
    Code:
    char *MoptTEST1 [] = {"Off,"Premium1,"Premium2"};
    that is for a option for more than 1 item on that hack

    the other way is call well i call it:

    Code:
    Single
    Enjoy
    Last edited by Wizdom-X; 05-22-2011 at 03:44 AM.



  2. #2
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Not everyone uses the same base, you know? This would only work for your one

  3. #3
    Wizdom-X's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    526
    Reputation
    19
    Thanks
    113
    My Mood
    Amused
    yes i now this for like the easyer bases omfg................do u now bases??

    this kind of base is easyer to add function



  4. #4
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Quote Originally Posted by Wizdom-X View Post
    yes i now this for like the easyer bases omfg................do u now bases??

    this kind of base is easyer to add function
    I just know that not everyone builds their menu classes the same way

  5. #5
    Wizdom-X's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    526
    Reputation
    19
    Thanks
    113
    My Mood
    Amused
    not every one lol the hole world int the same xD



  6. #6
    Mike Shinoda's Avatar
    Join Date
    May 2008
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,177
    Reputation
    67
    Thanks
    165
    My Mood
    Amazed
    so give as your base?
    It always starts with one thing...

  7. #7
    TheCamels8's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Israel :D
    Posts
    2,945
    Reputation
    174
    Thanks
    1,376
    My Mood
    Cheeky
    Lol, Alen is right..
    This is a fail topic, you didn't give info about your base, you didn't explain good what you did, etc..
    And also it's not your base xD

  8. #8
    nokia6288's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    565
    Reputation
    10
    Thanks
    225
    My Mood
    Doubtful
    i cant understand this... it is totally different from the once i see in this forum

  9. #9
    xTremist's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    16
    My Mood
    Bored
    Quote Originally Posted by Wizdom-X View Post
    yes i now this for like the easyer bases omfg................do u now bases??

    this kind of base is easyer to add function
    Please, tell me, why do you seem to believe you know a lot more than everyone else?
    Simple WarRock NoMenu Base:
    Update the addresses yourself.

  10. #10
    _Headsh0t_'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    3
    My Mood
    Cheerful
    why you dont give the things that you need like download links ..

    Friend List

    Flash

    My Self :P

    AeroSkinn

    AeroMan