Results 1 to 4 of 4
  1. #1
    merp.'s Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    147
    Reputation
    10
    Thanks
    301
    My Mood
    Bored

    Checkable box code? (I made it)

    with the help of Acea (helped with isinRange function), I made my own clickable box function (with the use of public functions like DrawBorder and FillRGB). It works, but it gets glitchy sometimes. (idk how it happens (occurs randomly), but after clicking on it a few times, it goes from <option> to <off>) ex: for CrossHair: goes from: [Off] -> [Red] -> [Blue](turning on)... [Cyan] ->(Turning it off).... [Red] -> [On]. <- [On] isn't even a setting for my menuOption, yet I don't know why it appears. (that's the glitch)

    Here is my current code; not really efficient (I "noob-proofed" some/added stuff, I hope they're easily noticeable) :

    Code:
    void CheckableTabs(int x, float y, int w, float h, int px, char* hackName, int MaxValue, int &hackVariable, char** menuOption, LPDIRECT3DDEVICE9 pDevice)
    
    	cMenu->DrawBorder(x , y + 1 /*+3*/ , w, h, px, Black, pDevice);
    	if(isTabClickedByMouse = false)
    	{
    		if(hackVariable = 0)
    
    		cMenu->DrawText(pDevice, x - 100, y, BCGrey2, hackName);
    		cMenu->DrawText(pDevice, x - 50, y, BCGrey2, menuOption[hackVariable]);
    		if(hackVariable > 0)
    		{
    			cMenu->DrawText(pDevice, x - 100, y, BCBlue2, hackName);
    		cMenu->FillRGB(x+1,y + 2.0,w - 2,h - 1.5, Green, pDevice);
    		cMenu->DrawText(pDevice, x - 50, y, BCBlue2, menuOption[hackVariable]);
    		}
    		if(isTabClickedByMouse = false && GetAsyncKeyState(VK_RBUTTON)&1 && isMouseinRange(insert some params) = true && hackVariable > noVarValue)
    	{ 
    
    		hackVariable--;
    		
    	}
    	}
    	else if(isTabClickedByMouse = true)
    	{
    		cMenu->DrawText(pDevice, x - 100, y, BCBlue2, hackName);
    		cMenu->DrawText(pDevice, x - 50, y, BCBlue2, menuOption[hackVariable]);
    		cMenu->FillRGB(x+1,y + 2.0,w - 2,h - 1.5, Green, pDevice);
    		if(isTabClickedByMouse = true && GetAsyncKeyState(VK_LBUTTON)&1 && isMouseinRange(insert some params) = true && hackVariable < MaxValue)
    	{
    		 
    				hackVariable++;
    			}
    	}
    	
    	
    	if(isMouseinRange(insert some params) = true && GetAsyncKeyState(VK_LBUTTON)&1)
    	{
    		 isTabClickedByMouse = true;
    		 
    	}
    	else if(isMouseinRange(insert some params) = true && GetAsyncKeyState(VK_RBUTTON)&1)
    	//	else
    		{
    			isTabClickedByMouse = false;
    		 
    		}
    		
    		 
    	
    }
    This is the result of my code:
    View xAeSox.png on ScreenSnapr
    I do plan to change it so that it's controlled only with the Left mouse. I know it's lengthy and not the best, but I like it; it's something I made using my knowledge instead of c+ping.

  2. #2
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    643
    Reputation
    74
    Thanks
    2,999
    My Mood
    Relaxed
    If you're trying to fix your code, have a look at the redemption base I released, it uses checkboxes and it should help you out a little.
    Currently coding applications in Java and C++.

    "It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be." -Isaac Asimov

  3. The Following User Says Thank You to Shadow` For This Useful Post:

    merp. (02-10-2013)

  4. #3
    merp.'s Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    147
    Reputation
    10
    Thanks
    301
    My Mood
    Bored
    Quote Originally Posted by Shadow` View Post
    If you're trying to fix your code, have a look at the redemption base I released, it uses checkboxes and it should help you out a little.
    that's alot neater and shorter than mine.. thanks!

  5. #4
    N3OH4X's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    87
    My Mood
    Devilish
    Nice job @merp. Sexy Color too

  6. The Following User Says Thank You to N3OH4X For This Useful Post:

    merp. (02-10-2013)

Similar Threads

  1. JUST DISCOVERY!! FOR BOX CODE
    By junjunhernan in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 11-01-2010, 08:56 PM
  2. New Box Code by Kaspersky
    By Kaspersky in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 09-26-2010, 04:32 PM
  3. Box Code
    By Who Fucked My MUM? in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 09-25-2010, 01:47 PM
  4. Player Box Code
    By tabuzo013 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 21
    Last Post: 08-02-2010, 09:24 AM
  5. STOP POSTING BOX CODE
    By dddrrr in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 06-20-2010, 12:51 AM