Page 1 of 4 123 ... LastLast
Results 1 to 15 of 48
  1. #1
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed

    Arrow Complete Tutorial To C++/Explanations On Many Things

    /sticky?

    *UPDATED CONSTANTLY*
    Code:
    update 1.1-
         -Fixed some lines of description
         -Added basics section
    update 1.2-
         -Fixed somemore lines of description
         -Added d3d section
    update 1.3-
         -Fixed even more lines of descriptions
         -Fixed bools mixed in with int's
         -Added more to basics section
    *Going to add a good base to start with soon with the basic code*

    -HUGE NOTE!!!!-
    this tutorial is extremely simplified and gives everyone a good chance at understanding coding, no matter how much experience they may have.

    So anyway, here goes.

    I've been extremely sad lately because of all the retards using gellin's base just copy+pasting code into their hacks making them "VIP" LIKE CHOCOLATE(xChocolatex, A.K.A. Chocolate[coder])

    I spent alot of time on this so DON'T FLAME AND BE HAPPY THAT I'M SPENDING LIKE 2 HOURS OF MY TIME ON THIS!!!!(chances are u wont even read this and just skip to the tut )

    NOW THE TUT!!!!!!
    -HUGE NOTE!!!!!-
    coding is extremely related alot to algebra (advanced math) and geometry (for angles and co-ordinates), so in other words, chances are u will understand coding MUCH better if u have taken algebra and geometry.

    now here are some definitions:
    Code:
    Function - code used to contain an operation which is executable by replacing the function's variables or text(much like algebra)
    
    Addy(Address) - data that contains a variable and may be hidden by the program
    
    Pointer - data that points to an address, attempting to hide the real one deeper and deeper into the addies
    
    Base - Pre-made projects for u to use or learn from, but are often just compiled by noobs (perhaps only with updating of addies)
    
    Update(addies) - Games usually update the locations of data with patches, and so u need to do this to have an accurate address, or else ur code will not work.
    
    d3d/d3d9 - DirectX Utilities used to create and edit objects ingame and can also be used to create many other things ingame(text, checkboxes, boxes, borders,crosshairs, etc.)
    
    Detected - Games can detect the same hacks or code stored in their database, so this is why u need to update ur classes often.  when something is detected, the game notices the injected hack and then exits the game, logs it and sends it to the game hack protection software (hackshield), or bans u
    
    Patched - after detection, the game will do this when an update is applied and the hack protection software does do this to it to completely block it out of the game, crashing it, or giving u an error
    i think that's it for definitions...

    now the real part of the tut.

    BASICS!!!
    so now, to code anything, theres very different ways of doing them...
    sometimes u can use a print to screen method called "cout", but this is almost the most basic of them all, now that's how u actually make ur program display something on ur screen. but what about the very very basic stuff that runs ur computer but noone notices?

    well, u can run a program with C++ in the very background of ur computer, and can take alot of space, or a very tiny space. now it doesnt have to do anything big, but u could just make it add 2 numbers again and again and have absolutely nothing to do with ur pc. so enough rambaling on, lets get to what u all want to know.

    so basic code symbols first:
    Code:
    {-opening bracket, lets u open up a function or variable to edit or add code inside of it to be executed or used
    }-closing bracket, lets u close up the code u were adding into the function or variable
    ;-u put this at the end of most peices of code to state that it's starting a new line or peice of code
    /-dividing symbol ex: 5/7=.....
    *-multiplying symbol
    +-adding symbol
    --minus symbol
    =-equals symbol
    so if u wanted to add 2 numbers together and do nothing more with them, then u would do this-
    Code:
    #include <windows.h>//includes a file that has pre-coded functions or other code
    #include <math.h>
    
    int number;//creates the variable "number" which can be changed later in the code, so basically when u create the object at the beginning of the code, it reads it down, not up, so therefore u can change it later in the code.  u can read or edit this value later in the code as u go down
    
    2 / 1 = number;//this will first divide 2 by 1, and then say that's what "number" is (kinda like injecting the product of the problem into the int "number")
    
    void main();//the main function in ur code to be executed and returns nothing(u put most of ur execution code into here)
    {//opens main() to put code inside of it, defining what main() does
         number * 5;//states the variable, "number", then uses the multiplying symbol "*", then says to multiply it by the number 5
    }//closes main(), finishing the code u entered into main()
    now if u wanted it to display something on ur screen, u would do this:
    Code:
    #include <windows.h>
    #include <math.h>
    #include <iosteam.h>//this has the <<cout function for use pre-coded
    
    int number;//states that number is an interger, so it can hold numbers
    
    2 / 1 = number;//says 2 divided by 1 is what number is
    
    void main();//states the function "main" as a void
    {
        <<cout number * 5 = ""//<<cout displays the text or numbers inside of the "" 's in CMD, so it multiplies "number" 's value by 5 and displays what its output is in the ""
    }
    thats it for the basics for now, dont have alot of time on my hands right now.

    Learning from examples is a good way to start in my opinion, so i will show u a full hack code and explain every part of it bit by bit.(explanations or comments after // as in C++)

    Auto-On hack example:
    Code:
    #include <windows.h>//this will include code from another C++ file that could have functions for use in ur code
    bool IsGameReadyForHook()//this is the part of the code to attach itself to the process(pretty sure of it anyways xb )
    {//this thing opens up any function or variable to put code inside of it
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }//this closes the particular code that was opened by the opening bracket
    void __cdecl PushToConsole( const char* szCommand )//now this is a function, this particular one is the PTC method.
    {
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );//here is some code, a dword defines the address as LTClient to use later only using the name LTClient. see when u define something, it literally DEFINES the name of it as whatever u want it to be so u can use the name of it in place of the addy or whatever
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );//the address inside of the dword "LTClient" + the offset
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()//this is the place you will put all of ur code, it is a Function, voids can hold many different things and are executed in the code, a void does not return a value
    {
    while(true)//this says that while the hack is active(true) then it will do this code(which is opened up by the opening bracket)
    {
    PushToConsole("SkelModelStencil 1");//now this is how u use the PTC method. if u look back to the PTC function u will see the first line says PushToConsole( const char* szCommand ), so like an algebra function, u are just using the PushToConsole at the beginning, and replacing the const char* and szCommand with ur code(in quotes), PTC's are found in CShell or Engine
    }
    }
    DWORD WINAPI dwHackThread(LPVOID)//states the dword, hackthread as an LPVOID
    {
    while( !IsGameReadyForHook() )//while isgamereadyforhook is happening...
    Sleep(100);//it will repeat itself, as like if u had a hotkey in the code, it would run by the hotkey every 100 miliseconds (i think miliseconds) and execute it if the key was pressed.
    main();//function to be repeated(or void i think)
    return 0;//little bit of code that i have no idea about but makes it work lol
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )//states the function for the threads to be created using this function
    {
    DisableThreadLibraryCalls(hDll);//allows threads to be created without game interference or permission
    if ( dwReason == DLL_PROCESS_ATTACH )//attach the thread to the game using the reason DLL_PROCESS_ATTACH
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);//this creates the thread so it can be hooked in with the game, it also states it for later purposes
    }
    return TRUE;//have absolutely NO IDEA
    }
    there u have it, explained to the fullest.

    so now lets take a look at a hotkey hack example that is a press and hold hotkey: (not sure why but after the key and parenthesis, sometimes u have to put <0 instead of &1 (kinda weird)
    Code:
    if(GetAsyncKeyState(VK_NUMPAD1)&1)//if the key is pressed(get the key status(VK(=code for stating keys)_key u want with all caps)&1/<0)
    {
    PushToConsole("ActivationPickupDistance 999.999999");//another PTC, here is like the main void we talked about (void main()), it will execute ur code upon pressing of the key
    }
    now lets take a look at a hotkey that is activating by pressing it on, then pressing it off, etc:
    Code:
    if(GetAsyncKeyState(VK_NUMPAD1)&1)//explained
    {
    PushToConsole("ActivationPickupDistance 999.999999");//now wait a minute! this has an else after it, which means that it will execute THIS code UNLESS another event occurs(in this case it is the key being unpressed)
    } else {
    PushToConsole("ActivationPickupDistance 5.0")//so here is where the code will go to when the key is NOT pressed
    }
    now heres a code for a better coded hotkey hack:
    Code:
    bool hack;//this defines what hack is and says it's type is a bool, and a bool can only hold 2 values, true or false, so it's perfect for a hotkey hack
    
    hack = false//this will define what hack's value is. this can also be changed later along the course of the code
    OR (forgot which one)//lol
    bool hack = false;//defines what hack is and it's value that it's holding
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1)//same
    {
    PushToConsole("ActivationPickupDistance 999.999999");//same
    
    hack = true;//now this will set hack's value to true, stating that this is what will happen when  only while the hotkey is enabled
    } else {
    PushToConsole("ActivationPickupDistance 5.0")
    
    hack = false;//this will set it to false when the hotkey is not activated
    }
    so now i will show u a jumbled up code that should not happen because it doesnt look good and is harder to understand:
    Code:
    bool hack = false;//explained
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1)//explained
    {
    hack = true;//here i only say that the hack is activated when the key is pressed, so it sets the value, but won't do anything IN THIS PART OF CODE
    } else {
    hack = false;//says that "hack" is deactivated when the hotkey is deactivated
    }
    
    if (hack)//now here i say what hack does if it is activated(which is defined when it is active in the hotkey code)
    {
    PushToConsole("ActivationPickupDistance 999.999999");//states what happens when "hack" = true
    } else{
    PushToConsole("ActivationPickupDistance 5.0");//states what happens when "hack" = false
    }
    now the big one, the MENU HACK!!!NOTE-this does not include some code of the d3d base or most functions yet.)
    Code:
    #include "d3d9font.cpp/.h"//includes
    #include <string.h>
    #include <stdio.h>
    
    bool Hack1, Hack2, Hack3, Hack4, Hack5, Hack6, Hack7, Hack8, Hack9, Hack10;//defines and lists all the hacks as type bool(true or false values) and as Hack1, Hack2, etc.
    bool Visible = false;//defines the Visible variable as type bool(true/false), and says it is false
    int tabItem;//defines tabItem as type int(holds any number)
    
    
    HRESULT WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT//d3d function 
    *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
    {
    _asm PUSHAD;
    //DrawsFont//
    if(pFont == NULL) D3DXCreateFontA(pDevice, 14, 6, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &pFont);
    //D3DXCreateLine(pDevice,&pLine); //draws line/circle
    //DrawsFont//
    
    		if(GetAsyncKeyState(VK_LEFT)&1) if(tabItem > 1) tabItem--;//EXTREMELY BAD TABS!!!
    		if(GetAsyncKeyState(VK_RIGHT)&1) if(tabItem < 4) tabItem++;
    		if(GetAsyncKeyState(VK_DOWN)&1) {
    			switch(tabItem) {//function "switch" will change the int "tabItem" and use it
    			case 1:  //says that this is one of the cases that can happen
    				tabItem = 5;//says that "tabItem" will equal 5 on case 1
    				break;
    			case 2: 
    				tabItem = 6;
    				break;
    			case 3: 
    				tabItem = 7;
    				break;
    			case 4:
    				tabItem = 8;
    				break;
    			}
    		}
    		if(GetAsyncKeyState(VK_UP)&1) {
    			switch(tabItem) {
    			case 5:  
    				tabItem = 1;
    				break;
    			case 6: 
    				tabItem = 2;
    				break;
    			case 7: 
    				tabItem = 3;
    				break;
    			case 8:
    				tabItem = 4;
    				break;
    			}
    		}
    
    if(GetAsyncKeyState(VK_INSERT)&1) //Key to open/close menu
    {
    	Visible =! Visible;//a variation of the else feature that does pretty much the same thing
    }
    
    if(Visible)//says that if the menu is visible, then do the things inside of visible(inside the {'s and }'s
    {		
    
                    //Function Name(x-axis position,y-axis position,xsize,ysize,color,[color2],device used)
    		DrawBox(30,300,60,26,Red,Red,pDevice); //Tab 1
    		DrawBox(91,300,60,26,Red,Red,pDevice); //Tab 2
    		DrawBox(152,300,60,26,Red,Red,pDevice); //Tab 3
    		DrawBox(213,300,60,26,Red,Red,pDevice); //Tab 4
    		DrawMyText("1",58,306,White,pFont); //Text Tab1
    		DrawMyText("2",119,306,White,pFont); //Text Tab2
    		DrawMyText("3",180,306,White,pFont); //Text Tab3
    		DrawMyText("4",241,306,White,pFont); //Text Tab4
    
    		switch(tabItem) {//when the menu is visible, then when tabs are switched they will do the code for each case
    		case 1:
    			DrawBox(30,300,60,26,Red,Yellow,pDevice); //Tab 1
    			DrawMyText("1",58,306,Yellow,pFont); //Text Tab1
    			break;
    		case 2:
    			DrawBox(91,300,60,26,Red,Yellow,pDevice); //Tab 2
    			DrawMyText("2",119,306,Yellow,pFont); //Text Tab2
    			break;
    		case 3:
    			DrawBox(152,300,60,26,Red,Yellow,pDevice); //Tab 3
    			DrawMyText("3",180,306,Yellow,pFont); //Text Tab3
    			break;
    		case 4:
    			DrawBox(213,300,60,26,Red,Yellow,pDevice); //Tab 4
    			DrawMyText("4",241,306,Yellow,pFont); //Text Tab4
    			break;
    		}  
    
    		switch(tabItem) { //Drop down boxes
    		case 5:  
    			DrawBox(30,327,243,280,Red,Yellow,pDevice);//Drop down box
    			DrawCheckBox(40,340,16,16,"Hack1",pDevice,Hack1,0); //Checkbox num should always start at 0
    			DrawCheckBox(40,340,16,16,"Hack2",pDevice,Hack2,2);
    			DrawCheckBox(40,340,16,16,"Hack3",pDevice,Hack3,4);
    			DrawCheckBox(40,340,16,16,"Hack4",pDevice,Hack4,6);
    			DrawCheckBox(40,340,16,16,"Hack5",pDevice,Hack5,8);
    			break;
    		case 6: 
    			DrawBox(30,327,243,280,Red,Yellow,pDevice);//ddb
    			DrawCheckBox(40,340,16,16,"Hack6",pDevice,Hack6,0); //Checkbox num should always start at 0
    			DrawCheckBox(40,340,16,16,"Hack7",pDevice,Hack7,2); //if you put number it will add the number(1 or 2 and so on) times 20 so the boxes get put correctly
    			DrawCheckBox(40,340,16,16,"Hack8",pDevice,Hack8,4);
    			DrawCheckBox(40,340,16,16,"Hack9",pDevice,Hack9,6);
    			DrawCheckBox(40,340,16,16,"Hack10",pDevice,Hack10,8);
    			break;
    		case 7: 
    			DrawBox(30,327,243,280,Red,Yellow,pDevice);//ddb
    			DrawCheckBox(40,340,16,16,"Hack11",pDevice,Hack6,0);
    			break;
    		case 8:
    			DrawBox(30,327,243,280,Red,Yellow,pDevice);//ddb
    			DrawCheckBox(40,340,16,16,"Hack12",pDevice,Hack6,0);
    			break;
    		}
    
    	} //End if(Visible) { }
    
    //Add All Hacks here. Opk and telekill in seperate void and thread//
    //                                                                                    //
    //////////////////////////////////////////////////////////////////////////
    
    _asm POPAD;
    return oPresent(pDevice, pSourceRect,  pDestRect,  hDestWindowOverride,  pDirtyRegion);
    }
    
    //reset function for d3d \|/
    HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* Parametri){
    _asm NOP;
    
    pFont->OnLostDevice();//gets pFont
    
    HRESULT hTorna = oReset(pDevice, Parametri);//reset device if
    
    if(SUCCEEDED(hTorna)){//if reset succeeds...
    pFont->OnResetDevice();
    }
    return hTorna;
    }
    
    DWORD WINAPI Wait(LPVOID lpArgs){//timers
    DWORD dwD3D9 = NULL;//will set the dword dwD3D9 to NULL
    while(!dwD3D9){
    Sleep(20);
    dwD3D9 = (DWORD)GetModuleHandleA("d3d9.dll");
    }
    DWORD dwVTable[3] = {0};//thread
    CreateDev( dwVTable );
    oReset = ( tReset ) Salta(( PBYTE ) dwVTable[0], ( PBYTE ) &hkReset ,5);//resets :b
    oPresent = ( tPresent )Salta(( PBYTE ) dwVTable[1], ( PBYTE ) &hkPresent ,5);//presents :b
    return FALSE;
    }
    one more thing for the variables, if u want ur menu to be able to have multiple options other than just on and off, do this:
    Code:
    int hack = 0;//creates an variable "hack" and defines it's value as being 0
    
    if(hack)
    {
    hack = 0;//says that hack's value is 0(off)
    //put codes for what it does if it is at the value 0 in here, value 1 in next else, then so on and so on. so if u wanted to display it in ur menu, u would put in here to display "Off", then next "1", and next "2" and so on
    } else {
    hack = 1;//says that hack's value is 1
    } else if{
    hack = 2;//says that hack's value is 2
    }
    //then just define what will happen when hack is at the different variables and what text will be displayed
    --------------------------D3D SECTION-----------------------------------

    d3d functions:
    NOTE - classes for d3d not listed, if u want them just download nubzgetkillz base(at the bottom with creditz).
    Code:
    const D3DCOLOR Red = D3DCOLOR_ARGB(255, 255, 0, 0);//these are all defines, they define the colors as Red, Green, Orange, etc. and are usable.
    const D3DCOLOR Redd = D3DCOLOR_ARGB(255, 248, 10, 10);
    const D3DCOLOR Green = D3DCOLOR_ARGB(255,127,255,0);
    const D3DCOLOR Orange = D3DCOLOR_ARGB(255, 255, 140, 0);
    const D3DCOLOR Blue = D3DCOLOR_ARGB(255,0,0,255);
    const D3DCOLOR Yellow = D3DCOLOR_ARGB(255,255,255,55);
    const D3DCOLOR Black = D3DCOLOR_ARGB(255,0,0,0);
    const D3DCOLOR TransBlack = D3DCOLOR_ARGB(150,0,0,0);
    const D3DCOLOR Grey   = D3DCOLOR_ARGB(255,112,112,112);
    const D3DCOLOR Gold   = D3DCOLOR_ARGB(255,255,215,0);
    const D3DCOLOR Pink   = D3DCOLOR_ARGB(255,255,192,203);
    const D3DCOLOR Purple  = D3DCOLOR_ARGB(255,128,0,128);
    const D3DCOLOR White  = D3DCOLOR_ARGB(255,255,255,249);
    const D3DCOLOR Cyan  = D3DCOLOR_ARGB(255,0,255,255);
    const D3DCOLOR Magenta  = D3DCOLOR_ARGB(255,255,0,255);
    
    bool isMouseinRegion(int x1, int y1, int x2, int y2)//function that lets u determine what place the mouse is in. it is defined as isMouseinRegion, and it is type bool.
    {
        POINT cPos;//the point mouse is at
        GetCursorPos(&cPos);//to get the mouse position
        if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){//if the cursor is in THIS position then...
            return true;//it will say that the mouse is in that region, so it is true
        } else {
            return false;//if it is not in the region, then it will be false
        }
    }
    
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )//function to draw the box (FillRGB = Fill Space With This Thing)
    {
    	D3DRECT rec = { x, y, x + w, y + h };//a d3d rectangle
    	pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }
    
    void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )//function to draw a d3d border around ur box
    {
    	FillRGB( x, (y + h - px), w, px,	BorderColor, pDevice );
    	FillRGB( x, y, px, h,				BorderColor, pDevice );
    	FillRGB( x, y, w, px,				BorderColor, pDevice );
    	FillRGB( (x + w - px), y, px, h,	BorderColor, pDevice );
    }
    
    void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )//draw a box w/ a border
    {
    	FillRGB( x, y, w, h,		BoxColor, pDevice );
    	DrawBorder( x, y, w, h, 1,	BorderColor, pDevice );
    }
    
    void DrawHealthbar(int x, int y, int w, int h, D3DCOLOR barCol, D3DCOLOR borColor, int hp, int maxhp,IDirect3DDevice9* pDevice )//box w/ border that detects player's health
    { 
    FillRGB(x, y, ( hp / (double)maxhp ) * w, h, barCol, pDevice); 
    DrawBorder(x, y, w, h, 2, borColor, pDevice);
    }
    void DrawAPbar(int x, int y, int w, int h, D3DCOLOR barCol, D3DCOLOR borColor, int ap, int maxap,IDirect3DDevice9* pDevice )//box w/ border that detects player's AP
    { 
    FillRGB(x, y, ( ap / (double)maxap ) * w, h, barCol, pDevice); 
    DrawBorder(x, y, w, h, 2, borColor, pDevice);
    }
    
    void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)//function to draw a circle on ur screen in d3d
    {
        D3DXVECTOR2 Line[128];//all these defining where to put it
        float Step = PI * 2.0 / numSides;
        int Count = 0;
        for (float a=0; a < PI*2.0; a += Step)
        {
            float X1 = radius * cos(a) + X;
            float Y1 = radius * sin(a) + Y;
            float X2 = radius * cos(a+Step) + X;
            float Y2 = radius * sin(a+Step) + Y;
            Line[Count].x = X1;
            Line[Count].y = Y1;
            Line[Count+1].x = X2;
            Line[Count+1].y = Y2;
            Count += 2;
        }
        pLine->Begin();
        pLine->Draw(Line,Count,Color);
        pLine->End();
    }  
    
    void DrawMyText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)//function to draw text on the screen
    {
        RECT FontRect = { x, y, x+500, y+30 };
        font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
    }
    
    void DrawCheckBox( int x, int y, int w, int h, char pString[], IDirect3DDevice9* pDevice, bool &check, int num )//function to draw a checkbox used as a activator and disabler for ur hacks
    {
    	y += num * 20;//all here drawing the box and defining the checking function
    	DrawMyText(pString,x+w+5,y+(h/2)-8,Yellow,pFont);
    
    	POINT myCursor;
        GetCursorPos(&myCursor);
    
    	if(( myCursor.x >= x && myCursor.x <= x + w && myCursor.y >= y && myCursor.y <= y + h && GetAsyncKeyState(VK_LBUTTON)&1 ))
    	{
    			check =! check;
    	}
    
    	if(check)//if the checkbox is checked then it will fill it with a color
    	{ 
    	DrawBox(x, y, w, h, Redd, Yellow, pDevice); 
    	DrawBox(x + (w / 4), y + (h / 4), w / 2, h / 2, Yellow, Yellow, pDevice);
    	} else {
    	DrawBox(x, y, w, h, Redd, Yellow, pDevice); 
    	}
    }
    
    void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){//draw a rectangle function
    D3DRECT rec;
    rec.x1 = x;
    rec.x2 = x + w;
    rec.y1 = y;
    rec.y2 = y + h;
    pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
    }
    
    /***Basic Crosshair***/
    void CrossHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR Colore){//function to draw a crosshair onto the middle of ur screen
    D3DVIEWPORT9 Viewport;
    pDevice->GetViewport(&Viewport);
    DWORD ScreenX = Viewport.Width / 2; 
    DWORD ScreenY = Viewport.Height / 2; 
    D3DRECT rec2 = {ScreenX-9, ScreenY, ScreenX+9, ScreenY+1};
    D3DRECT rec3 = {ScreenX, ScreenY-9, ScreenX+1, ScreenY+9};
    pDevice->Clear(1, &rec2, D3DCLEAR_TARGET,Colore, 0, 0);
    pDevice->Clear(1, &rec3, D3DCLEAR_TARGET,Colore, 0, 0);
    }
    /***Basic Crosshair***/
    
    void BigHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR Color){//same but bigger
    D3DVIEWPORT9 Viewport;
    pDevice->GetViewport(&Viewport);
    DWORD ScreenX = Viewport.Width / 2; 
    DWORD ScreenY = Viewport.Height / 2; 
    D3DRECT rec2 = {ScreenX-100, ScreenY, ScreenX+100, ScreenY+1};
    D3DRECT rec3 = {ScreenX, ScreenY-100, ScreenX+1, ScreenY+100};
    pDevice->Clear(1, &rec2, D3DCLEAR_TARGET,Color, 0, 0);
    pDevice->Clear(1, &rec3, D3DCLEAR_TARGET,Color, 0, 0);
    }


    that is all i have time for right now, i will take requests on explaining or putting up a tut on anything u desire, pm me and post it here for an appearance here.


    THANKS FOR READING!!!!

    Creditz-
    CoderNever(his tut's code for explanations)
    Nubzgetkillz(his menu base's code for further explanations) his base - here
    google(for accurate spelling )
    _Fk127_(corrections on my code and being nice about it)


    THANK ME IF THIS HELPED U IN ANY WAY AND GIVE CREDZ!!!
    Last edited by wolffang0000; 02-02-2011 at 02:32 PM.

  2. The Following 8 Users Say Thank You to wolffang0000 For This Useful Post:

    CodeDemon (02-01-2011),Crash (02-01-2011),House.m.d. (02-09-2011),mojo786 (02-09-2011),Nubzgetkillz (02-23-2011),PikaMucha_Itu (02-10-2011),Sketchy (03-13-2011),XxJonBoiixX (02-01-2011)

  3. #2
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    wtf is dis?

  4. #3
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    did u even read anything??????

  5. #4
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    void main()//this is the place you will put all of ur code, it is a void...
    void main()//this is the place you will put all of ur code, it is a Function...
    fixxed.
    but other than that nice job.



    Put this image in your signature if you support HTML5 development!

  6. #5
    Margherita's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    11,306
    Reputation
    783
    Thanks
    1,282
    My Mood
    Bashful
    I'm guessing this is a good tutorial. More of an explanation of what C++ and making a hack really is, not necessarily, "How to make a hack". Pretty good though.

    He obviously didn't read it
    PM Me | VM Me | Rules

    MARGHERITA

  7. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    This tells you nothing about C++
    no offense.

  8. #7
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    lol thanks blue, and thanks to u fk 127, *fixed*

    umm whit, DID U NOT UNDERSTAND THE CONCEPT OF THE TUTORIAL!!!!!!!!!!!!!!!!!!!!!!!????????????

    lol im protective of my work

  9. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by wolffang0000 View Post
    did u even read anything??????
    its a tutorial about if-statements in c++ with some copy pasta.

  10. The Following User Says Thank You to NOOB For This Useful Post:

    ғᴜᴋᴏᴊʀ (02-03-2011)

  11. #9
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by _Fk127_ View Post
    void main()//this is the place you will put all of ur code, it is a void...
    void main()//this is the place you will put all of ur code, it is a Function...
    fixxed.
    but other than that nice job.
    A void is a function but it is a function that returns no value, hence the word "void".

  12. #10
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Code:
    int main()
    {
    return (int)EPICHACKZOR.HACKZORS->EPICNESS;
    }
    

    Full Hack with all features
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  13. #11
    -xGhost-'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    C:\Sytem32
    Posts
    347
    Reputation
    9
    Thanks
    57
    My Mood
    Relaxed
    This doesn't teach C++, just explains the basics of hacking CA with out the hardest part explained the ByPass/Hook.

    Great job anyways.



  14. #12
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    I'm not sure how accurate most / all things in here are and how good the actual descriptions of each line are.

  15. #13
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    This made my day.

    This totally deserves a sticky.

    I dont know which part was the funniest. +Thanks just because you made my day

    I thinks this was the best line:
    Code:
    return 0;//little bit of code that i have no idea about but makes it work lol
    Hey! Atleast you're trying to benefit /

  16. #14
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by CodeDemon View Post
    This made my day.

    This totally deserves a sticky.

    I dont know which part was the funniest. +Thanks just because you made my day

    I thinks this was the best line:
    Code:
    return 0;//little bit of code that i have no idea about but makes it work lol
    Hey! Atleast you're trying to benefit /
    Code:
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );//here we have an address, and yes this is what they will look like. this one is the Engine LTC


    Code:
    bool IsGameReadyForHook()//this is the hook

  17. #15
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    Code:
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );//here we have an address, and yes this is what they will look like. this one is the Engine LTC


    Code:
    bool IsGameReadyForHook()//this is the hook
    / thats not the engine LTC I saw that too.

    There is also:

    Code:
    return TRUE;//makes the code return true so the game cannot reject the code
    Last edited by CodeDemon; 02-01-2011 at 07:43 PM.

Page 1 of 4 123 ... LastLast