Results 1 to 7 of 7
  1. #1
    alvin-vince1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    5

    Smile Crossfire PH help me code and download visual

    hellow po bawal po ba sa visual c++ 2008 ang d3dx9 kase yong code po nakuha ko d2
    yong na copy ko tapos pinoste ko .cpp my error hindi ako makagawa ng d3d menu please help me nmn
    ano po dina download nyo para maka gawa kayo ng mga d3d menu sana nmn po my mag poste d2 ng
    tutorial step ng tagalog kong paano gawin nakapa hirap talaga basagan talaga ng mga utak
    sana hindi po ako ma banned d2 gusto ko lang po talaga maka gawa ng mga cheat my

    power full mpgh


    #include <windows.h>
    #include <stdio.h>
    #include <d3d9.h>
    #include <d3dx9.h>

    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "d3dx9.lib")

    #define PresentEngine 0x004C41AF
    DWORD retPresentEngine = ( PresentEngine + 0x5 );

    #define Red D3DCOLOR_ARGB( 255, 255, 255, 000 )
    #define Green D3DCOLOR_ARGB( 255, 000, 255, 000 )
    #define Blue D3DCOLOR_ARGB( 255, 000, 000, 255 )
    #define Yellow D3DCOLOR_ARGB( 255, 255, 255, 000 )
    #define Black D3DCOLOR_ARGB( 255, 000, 000, 000 )

    typedef struct{
    int index;
    char * title;
    int *hack;
    int hackmaxval;
    int hacktype;
    DWORD HCOLOR;
    }ITEM;

    int hackcount;
    int selector;
    int x,y,w,h;
    DWORD COLOR;

    ITEM HACKITEM[99];
    char hackrval[256];

    int xFontOffSet = 15;
    int hackopt1;
    int MenuHeight = 10;
    int show = 0;
    int hack1, hack2, hack3;

    LPDIRECT3DDEVICE9 pDevice;
    LPD3DXFONT Font;

    VOID StartFont( LPDIRECT3DDEVICE9 pDevice )
    {
    if( Font )
    {
    Font->Release();
    Font = NULL;
    }

    if( !Font )
    {
    D3DXCreateFont( pDevice,
    14,
    0,
    FW_BOLD,
    1,
    0,
    DEFAULT_CHARSET,
    OUT_DEFAULT_PRECIS,
    DEFAULT_QUALITY,
    DEFAULT_PITCH | FF_DONTCARE,
    "Arial",
    &Font );
    }
    }

    VOID WriteText(char pString[], INT x, INT y, DWORD color )
    {
    RECT rect;
    SetRect( &rect, x, y, x, y );
    Font->DrawText( NULL, pString, -1, &rect, DT_NOCLIP | DT_LEFT, color );
    }

    void CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)
    {
    hackcount++;
    HACKITEM[hackcount].index = index;
    HACKITEM[hackcount].hack = hack;
    HACKITEM[hackcount].hackmaxval = hackmaxval;
    HACKITEM[hackcount].hacktype = hacktype;
    WriteText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR); //If you want to move the menu opts down do something like this (index*15)+20 and to move it left or right just add/subtract from font offset.
    }

    void RenderMenu()
    {
    if(GetAsyncKeyState(VK_DOWN)&1)
    selector++;

    if(GetAsyncKeyState(VK_UP)&1)
    if(selector > 1)
    selector--;

    if (GetAsyncKeyState(VK_RIGHT)<0)
    {
    for(int i=0;i < (hackcount+1);i++)
    {
    if(selector == HACKITEM[i].index)
    {
    if(*HACKITEM[i].hack < HACKITEM[i].hackmaxval)
    *HACKITEM[i].hack += 1;
    }
    }
    }

    if (GetAsyncKeyState(VK_LEFT)<0)
    {
    for(int i=0;i < (hackcount+1);i++)
    {
    if(selector == HACKITEM[i].index)
    {
    *HACKITEM[i].hack = 0;
    Sleep(20);
    }
    }
    }

    for(int i=0;i < (hackcount+1);i++)
    {
    if(selector == HACKITEM[i].index)
    HACKITEM[i].HCOLOR = Green;
    else
    HACKITEM[i].HCOLOR = Red;
    }

    for(int i=1; i<(hackcount+1); i++)
    {
    if(HACKITEM[i].hacktype == 0)
    {
    if(*HACKITEM[i].hack == 1) //to move the opts down do something like this (HACKITEM[i].index*15)+20
    WriteText("On", xFontOffSet+100, HACKITEM[i].index*15,Yellow);
    else
    WriteText("Off", xFontOffSet+100, HACKITEM[i].index*15,Red);
    }
    }

    for(int i=1; i<(hackcount+1); i++)
    {
    if(HACKITEM[i].hackmaxval >1 && HACKITEM[i].hacktype == 1)
    {
    sprintf_s(hackrval, "%i", *HACKITEM[i].hack);
    WriteText(hackrval, xFontOffSet+100, HACKITEM[i].index*15,Red);
    }
    }

    if(selector < 1)
    selector = 1;

    if(selector > hackcount)
    selector = 1;

    hackcount = 0;
    }

    void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
    if(GetAsyncKeyState(VK_INSERT)&1) show=(!show);

    if(!show)
    {
    WriteText(menuname, 5, 2, TITLECOL);
    return;
    }

    WriteText(menuname, x+10, y+2, TITLECOL);

    CreateItem(1,"Hack 1", &hack1, 1, 0);
    CreateItem(2,"Hack 2", &hack2, 1, 0);
    CreateItem(3,"Hack 3", &hack3, 1, 0);

    RenderMenu();
    }

    /*void MemoryHackHere()
    {
    //load modules & continue with hacks

    if(hack1)
    {

    }

    //do not put sleep()
    }
    */

    __declspec( naked ) HRESULT WINAPI PresentMidfunction( )
    {
    static LPDIRECT3DDEVICE9 pDevice;

    __asm
    {
    MOV ECX, DWORD PTR DS:[EAX]
    MOV EDX, DWORD PTR DS:[ECX + 0x44]
    MOV DWORD PTR DS:[pDevice], EAX
    PUSH 0
    PUSHAD
    }

    //================================================== ================================ font
    StartFont( pDevice );

    //================================================== ================================ menu
    BuildMenu("Avene D3D Menu Crossfire 6/9/2012",0,0,180,200,Red,Black,Green,pDevice);

    //================================================== ================================ hack
    //MemoryHackHere();

    __asm
    {
    POPAD
    JMP retPresentEngine
    }
    }

    VOID *DetourCreate( BYTE *src, CONST BYTE *dst, CONST INT len )
    {
    BYTE *jmp =( BYTE * ) malloc( len + 5 );
    DWORD dwBack;

    VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
    memcpy( jmp, src, len );
    jmp += len;
    jmp[0] = 0xE9;
    *( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;

    src[0] = 0xE9;
    *( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
    for( INT i = 5; i < len; i++ )
    src[i] = 0x90;
    VirtualProtect( src, len, dwBack, &dwBack );

    return( jmp - len );
    }

    DWORD WINAPI StartRoutine( LPVOID )
    {
    while( TRUE )
    {
    if( memcmp( ( VOID * )PresentEngine, ( VOID * )( PBYTE )"\x8B\x51", 2 ) == 0 )
    {
    Sleep( 100 );
    DetourCreate( ( PBYTE )PresentEngine, ( PBYTE )PresentMidfunction, 5 );
    }
    Sleep( 50 );
    }

    return 0;
    }

    BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    if( dwReason == DLL_PROCESS_ATTACH )
    {
    DisableThreadLibraryCalls( hDll );
    //MessageBox( 0, "Avene D3D Menu", "Crossfire", 0 );
    CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );
    }

    return TRUE;
    }






    san pwede to sa visual c++ 2008 ba help me please
    Last edited by alvin-vince1; 09-09-2012 at 02:06 AM.

  2. #2
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep

    It's an english forum, so speak/write english
    Nobody will help u

    Thanks @Scynix for this awesome picture
     


  3. #3
    alvin-vince1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    5
    please help me

  4. #4
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep

    I dont know what your problem is

    Thanks @Scynix for this awesome picture
     


  5. #5
    alvin-vince1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    5
    Ok Give code wallhack or speed knife visual c++ 2008 or visual c++ 2010
    thanks

  6. #6
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep
    No ..
    U dont get a source code
    Last edited by [H]aaBX; 09-09-2012 at 03:52 AM.

    Thanks @Scynix for this awesome picture
     


  7. #7
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Quote Originally Posted by alvin-vince1 View Post
    Ok Give code wallhack or speed knife visual c++ 2008 or visual c++ 2010
    thanks
    Code:
    if(wallhack)
    {
    	memcpy((VOID*)0x????????, "\x00\x00\x00\x00\x00\x00", 6);
    }
    Code:
    if((*(DWORD*)((*(DWORD*)(CShell + WeaponMgr))+(4*i)) ) != NULL)
    {
    	for (int j=0; j<9 ; j++)
    	{
    		*(float*)((*(DWORD*)((*(DWORD*)(CShell + WeaponMgr)) +(4*i))) + 0x??????? +j*4) = 100.0f;
    		*(float*)((*(DWORD*)((*(DWORD*)(CShell + WeaponMgr)) +(4*i))) + 0x??????? +j*4) = 100.0f;
    	}
    }

Similar Threads

  1. [Solved] HEY GUYS... CAN YOU HELP ME ?? HOW TO DOWNLOAD VISUAL BASIC ?? TO CREATE A DLL,ETC...
    By em0h4wks in forum Crossfire Coding Help & Discussion
    Replies: 3
    Last Post: 08-23-2012, 04:04 PM
  2. [Help Request] How to Pick up the codes and addons of crossfire?
    By Maicxdx in forum CrossFire Help
    Replies: 3
    Last Post: 06-18-2011, 07:10 PM
  3. [HELP] HUD Code and Perk Icon
    By Boon Pek in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 12-09-2010, 07:10 AM
  4. [HELP] hack code for microsoft visual c++
    By leroimaudit in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 10-26-2010, 12:44 PM
  5. Basic hacks and downloading hack help needed
    By micah344 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-25-2007, 12:20 PM