Results 1 to 5 of 5
  1. #1
    yeat's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0

    How to use this code ??

    Hi

    Someone create this for me:

    LPDIRECT3DDEVICE9 pDevice = NULL;

    void FillColor( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    if( w < 0 )w = 1;
    if( h < 0 )h = 1;
    if( x < 0 )x = 1;
    if( y < 0 )y = 1;

    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }

    if( Menu.mOpt[1].nopt > 0 ){
    D3DCOLOR xcolor = D3DCOLOR_ARGB( 255, 255, 0, 0 );

    int size = 25, strong = 3;
    int iCenterX = GetSystemMetrics( 0 ) / 2;
    int iCenterY = GetSystemMetrics( 1 ) / 2;
    if( iCenterX < 20 && iCenterY < 20 )
    {
    iCenterX = ( GetSystemMetrics( 0 ) / 2 );
    iCenterY = ( GetSystemMetrics( 1 ) / 2 );
    }
    D3DRECT rec2 = { iCenterX- size, iCenterY, iCenterX+ size, iCenterY+ strong};
    D3DRECT rec3 = { iCenterX, iCenterY- size, iCenterX+ strong,iCenterY+ size};
    pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, xcolor, 0, 0);
    pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, xcolor, 0, 0);
    }
    But i dont know how to use it =s
    Someone can make me a tutorial for use that or explain me, it will e really nice =)
    I'm a naab in programation,C++,and all

    (Its for a crosshair when i noscope with a snip) x)

    And sorry for my very bad english !

  2. #2
    j3imzg3nil's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    137
    Reputation
    14
    Thanks
    81
    My Mood
    Cool
    If you dont know how to make that..
    This is the easiest way to have a crosshair on the center of your screen

    https://www.mpgh.net/forum/288-combat...ml#post2416855

  3. #3
    Threadstarter
    Unverified User
    yeat's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    lawl

    I prefer have a real crosshair xD
    Someone can help me
    ?

  4. #4
    j3imzg3nil's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    137
    Reputation
    14
    Thanks
    81
    My Mood
    Cool
    well i dont know that someone will give you the exact code of the crosshair..
    i recommend you to learn c++
    or reaD some guides..

  5. #5
    C4P's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    2
    My Mood
    Happy
    Download a C++ compiler, i recommend Microsoft Visual C++ 2008 Express Editon (it's free).
    Then download DirectX SDK and install it.
    after that, you will be able to compile this code.
    by the way, this will not work for you cause there is no declare for the "Menu" item.
    and you need a main function.

    i suggest you to learn C++

Similar Threads

  1. How to use the codes?
    By supernoob1 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 28
    Last Post: 05-19-2010, 12:31 AM
  2. How to use bypass "code" to get old hacks.
    By pwnagebeef in forum Combat Arms Help
    Replies: 4
    Last Post: 04-05-2010, 05:56 PM
  3. Hi can anyone teach me how to use this hack?
    By jackychan19962 in forum Blackshot Hacks & Cheats
    Replies: 7
    Last Post: 06-24-2009, 06:20 AM
  4. how to use promo codes ??
    By freekyguy007 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 09-11-2008, 09:40 AM
  5. Warrock crashes when using this code in my D3D hack...
    By k2hacker in forum C++/C Programming
    Replies: 0
    Last Post: 07-21-2008, 05:04 PM