Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    help with d3d coding


    Cold heart
     Share

    Recommended Posts

    hi, can some1 post a tutorial on how to do something like when premium cheat is selected if the choose bronze then bronze premium shows and if they choose gold gold shows something liek that please thank you

     

    Premium : Bronze

     

    Badge shows bronze premium

     

    Premium : Gold

     

    badge shows gold premium

     

    somethng liek that because im confused at it and there are hardly any tutorials about this also i have the new base.

    Link to comment
    Share on other sites

    int premiumselect = 0;
    int maxpremium = 3;
    int minpremium = 0;
    
    if(premiumselect > maxpremium)
    premiumselect = minpremium;
    if(premiumselect < minpremium)
    premiumselect = maxpremium;
    
    
    if(menuSelected.Premium) //Draws all the text in some other highlighted color if this line is selected.
    {
      pFont->DrawText(0, "Premium", x , y , specialcolor...) //watch msdn for this
    
      if(premiumselect == 0)
      pFont->DrawText(0, "None", x+50, y, specialcolor...); 
    
     else if(premiumselect == 1)
     pFont->DrawText(0, "Bronze", x+50, y, specialcolor...);
    
     else if(premiumselect == 2)
     pFont->DrawText(0, "Silver", x+50, y, specialcolor...);
    
     else if(premiumselect == 3)
     pFont->DrawText(0, "Gold", x+50, y, specialcolor...);
    }
    else //Draws all the text in normal color if its not highlighted
    {
      pFont->DrawText(0, "Premium", x , y , normalcolor...) //watch msdn for this
    
      if(premiumselect == 0)
      pFont->DrawText(0, "None", x+50, y, normalcolor...); 
    
     else if(premiumselect == 1)
     pFont->DrawText(0, "Bronze", x+50, y, normalcolor...);
    
     else if(premiumselect == 2)
     pFont->DrawText(0, "Silver", x+50, y, normalcolor...);
    
     else if(premiumselect == 3)
     pFont->DrawText(0, "Gold", x+50, y, normalcolor...);
    
    }
    
    if((GetAsyncKeyState(VK_RIGHT)&1)!=0)
    {
      if(menuSelected.Premium)
      premiumselect += 1;
    }
    
    if((GetAsyncKeyState(VK_LEFT)&1)!=0)
    {
      if(menuSelected.Premium)
      premiumselect -= 1;
    }

    Link to comment
    Share on other sites

    Thank you very much!

     

    *EDIT*

     

    i get errors saying this in your tutorial :

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(203) : error C2143: syntax error : missing ';' before 'if'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(205) : error C2143: syntax error : missing ';' before 'if'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(208) : error C2143: syntax error : missing ';' before 'if'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(209) : error C2143: syntax error : missing ';' before '{'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(209) : error C2447: missing function header (old-style formal list?)

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(224) : error C2143: syntax error : missing ';' before 'else'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(225) : error C2143: syntax error : missing ';' before '{'

    c:\users\danny\desktop\d3d cheat\debug\base.cpp(225) : error C2447: missing function header (old-style formal list?)

     

    When i double click on it too see the errors it goes in this bit of coding:

    if(premiumselect > maxpremium) // Line 203

    premiumselect = minpremium;

    if(premiumselect < minpremium) // Line 205

    premiumselect = maxpremium;

     

    if(menuSelected.Premium) //Draws all the text in some other highlighted color if this line is selected. // Line 208

    { // line 209

    pFont->DrawText(0, "Premium", x , y , specialcolor...); //watch msdn for this

     

    if(premiumselect == 0)

    pFont->DrawText(0, "None", x+50, y, specialcolor...);

     

    else if(premiumselect == 1)

    pFont->DrawText(0, "Bronze", x+50, y, specialcolor...);

     

    else if(premiumselect == 2)

    pFont->DrawText(0, "Silver", x+50, y, specialcolor...);

     

    else if(premiumselect == 3)

    pFont->DrawText(0, "Gold", x+50, y, specialcolor...);

    }

    else //Draws all the text in normal color if its not highlighted

    {

    pFont->DrawText(0, "Premium", x , y , normalcolor...); //watch msdn for this

     

    if(premiumselect == 0)

    pFont->DrawText(0, "None", x+50, y, normalcolor...);

     

    else if(premiumselect == 1) // line 224

    pFont->DrawText(0, "Bronze", x+50, y, normalcolor...); // Line 225

     

    else if(premiumselect == 2)

    pFont->DrawText(0, "Silver", x+50, y, normalcolor...);

     

    else if(premiumselect == 3)

    pFont->DrawText(0, "Gold", x+50, y, normalcolor...);

     

    }

     

    thanks for the help.

    Edited by Cold heart
    Link to comment
    Share on other sites

    you cant copy paste that xD its an example and you must know a bit of c++ and understand it

    Link to comment
    Share on other sites

    *EDIT*

     

    Got it to work ok so now if i wanted to code it would it be done like this (eg:)

     

    if((GetAsyncKeyState(VK_Right)&1)=!0)

    {

    float / Serverpointer / offset / 1 //(1=bronze)

    }

     

    so as thats the code when it changes to silver how would the value change along with the text?

     

    eg:

    Premium : Silver

     

    blabla

    {

    float / serverp / offset / 2 //(2 = silver)

    }

     

    Premium : Gold

     

    blabla

    {float / serverp / offset /3 //(3=gold)

    }

     

    something like that please?

    Edited by Cold heart
    Link to comment
    Share on other sites

    • 3 weeks later...
    *EDIT*

     

    Got it to work ok so now if i wanted to code it would it be done like this (eg:)

     

     

     

    so as thats the code when it changes to silver how would the value change along with the text?

     

    eg:

     

    something like that please?

    what base are u using

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...