Menu shits..

Thread: Menu shits..

  1. #1

    Menu shits..

    Ok so i have a question .. I saw some hacks a thing... When the cvar is set to 1 , it shows in menu , in green color "On" but when its 0 , Then in red color "Off"

    How i can do it? Please help

    I tried puttin in SDK.h ,
    Code:
    #define 1 on
    but i got error , define sytax error ... so i dont know wtf to doo...
    Last edited by rolandsh; 11th June 2009 at 20:40.

  2. #2
    you're rly retarded lol cuz this is easier than shit
    here are the steps:
    1. make a func that draws a menu entry like that. for example: void Entry(float /*or int depending on operator used for the var*/ *var,int x,int y,const char *title,const char *comment);
    2. draw a box for turning on and off the var and draw the string for the indication of the var
    3. tell wat position and the width and height of where to click so the var turns on
    3. if(*var==true /*the var is turned on/*){ /*indicator that it turns on, for example, an x in the box*/ }
    4. if the mouse is over the position and size of the box then the var is turned off then take the x out of the box
    oh and btw, if u were to use the method you're trying to use here it would be: #define on 1; since thats the first definition. now if there were a second definition it would be #define WordHere 2.
    Last edited by indestructable; 12th June 2009 at 02:58.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in