Page 7 of 10 FirstFirst ... 56789 ... LastLast
Results 91 to 105 of 138
  1. #91
    deivys.cuba's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    nice hacks

  2. #92
    Solify's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Frankfurt, Germany
    Posts
    2,291
    Reputation
    143
    Thanks
    2,473
    My Mood
    Aggressive
    Generate Shader: (credits to s0beit)

    Code:
    HRESULT GenerateShader(LPDIRECT3DDEVICE9 pDevice, IDirect3DPixelShader9 **pShader, float r, float g, float b)
    {
    char szShader[ 64 ];
    ID3DXBuffer *pShaderBuf = NULL;	
    sprintf( szShader, "ps.1.1\ndef c0, %f, %f, %f, %f\nmov r0,c0", r, g, b);
    D3DXAssembleShader( szShader, sizeof( szShader ), NULL, NULL, 0, &pShaderBuf, NULL );
    if( FAILED(pDevice->CreatePixelShader((const DWORD*)pShaderBuf->GetBufferPointer(), pShader)) )return E_FAIL;
    return S_OK;
    }
    Generate Texture: (credits to Azorbix)

    Code:
    HRESULT GenerateTexture(IDirect3DDevice9 *pDevice, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
    {
    	if( FAILED(pDevice->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
    		return E_FAIL;
    	
    	WORD colour16 =	((WORD)((colour32>>28)&0xF)<<12)
    			|(WORD)(((colour32>>20)&0xF)<<8)
    			|(WORD)(((colour32>>12)&0xF)<<4)
    			|(WORD)(((colour32>>4)&0xF)<<0);
    
    	D3DLOCKED_RECT d3dlr;    
    	(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    	WORD *pDst16 = (WORD*)d3dlr.pBits;
    
    	for(int xy=0; xy < 8*8; xy++)
    		*pDst16++ = colour16;
    
    	(*ppD3Dtex)->UnlockRect(0);
    
    	return S_OK;
    }

    Creating Shader or Texture:

    Code:
    GenerateShader(pDevice, &Shader1, 1.0f, 0.0f, 0.0f);
    GenerateShader(pDevice, &Shader2, 0.0f, 0.0f, 1.0f);
    GenerateTexture(pDevice, &Texture1,Red);
    GenerateTexture(pDevice, &Texture2,Green);

    Shader Chams:

    Code:
    if(shaderchams){
    if(modelrec){
    pDev->SetRenderState(D3DRS_ZENABLE,FALSE);
    pDev->SetPixelShader(Shader2);
    pDrawIndexedPrimitive(pDev, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDev->SetRenderState(D3DRS_ZENABLE,TRUE);
    pDev->SetPixelShader(Shader1);
    }
    }

    Texture Chams:

    Code:
    if(texturechams){
    if(modelrec){
    pDev->SetRenderState(D3DRS_ZENABLE,FALSE);
    pDev->SetTexture(0, Texture2);
    pDrawIndexedPrimitive(pDev, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDev->SetRenderState(D3DRS_ZENABLE,TRUE);
    pDev->SetTexture(0, Texture1);
    }
    }

  3. #93
    furgol's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    as
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Angry
    Hi, I'm really new to this type of thing. SO please do not make fun of me when i ask this question. Where or what d oyuo put the code in?

  4. #94
    colley619's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Raiding your pantry
    Posts
    83
    Reputation
    10
    Thanks
    11
    My Mood
    Angelic
    how do i use these.. i havnt used CA hacks for a long time. its changed

  5. #95
    Shitfuckinghappens's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Psychedelic
    how do i insert these codes into the game?

    where do i put these codes in?
    Last edited by Shitfuckinghappens; 04-17-2011 at 06:04 AM.

  6. #96
    blooderz's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Drunk
    My menu does not crash but lost it why

  7. #97
    mrjk9416's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Where do you put the codes?
    Please don't make fun. I'm new at this stuff

  8. #98
    GForce-Cody's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    C:\Cody\Desktop\MPGH\
    Posts
    1,650
    Reputation
    120
    Thanks
    345
    My Mood
    Relaxed
    Thank you.

  9. #99
    Xmagz's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Unknown Location
    Posts
    80
    Reputation
    10
    Thanks
    14
    My Mood
    Inspired
    ahhh..something i may need... thanks for the share
    #'When you feel like giving up is when your close to your breakthrough'#!
    Contact Me!

    Code:
    2015 AND AM BACK WITH MORE FORCE!!

  10. #100
    MaxAnnihilation's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Ra(n)dom
    Posts
    15
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed
    Nice.....
    Thx for U.

  11. #101
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by mrjk9416 View Post
    Where do you put the codes?
    Please don't make fun. I'm new at this stuff
    u r put them into the c++ then you r compile then u hack r ready.
    jajajajajajajajja

  12. #102
    amandeep94's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    my home i guess :/
    Posts
    286
    Reputation
    42
    Thanks
    31
    My Mood
    Sleepy
    i have some files with extensions .h , .cpp , .vcproj , .sln --- are these hack files???
    if yes then how do i make the hack??? :/

  13. #103
    invasian's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    do you run Dll files by an injector or place them in Combat arms folder?

  14. #104
    shadowfinn11's Avatar
    Join Date
    May 2011
    Gender
    female
    Posts
    17
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    what do i do with these code things someone help plz im noob :P

  15. #105
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by shadowfinn11 View Post
    what do i do with these code things someone help plz im noob :P
    Build them into a .dll in a c++ project.

    Put these into the required spot (i.e. DIP or Present) and voila

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

Page 7 of 10 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. [Release] [LECHEED] -- Ghostmode, glitch hack, chams, speed, and more--
    By mhmnk in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 09-26-2009, 03:05 PM
  2. want chams,wallhack and more
    By OSCAR496 in forum Combat Arms Discussions
    Replies: 5
    Last Post: 09-07-2009, 12:03 PM
  3. RE: [ Release] Combat arms:Chams,Nospread and more...
    By eddieg in forum Combat Arms Hacks & Cheats
    Replies: 75
    Last Post: 07-31-2009, 10:35 AM
  4. RE: [ Release] Combat arms:Chams,Nospread and more...
    By eddieg in forum Combat Arms Hacks & Cheats
    Replies: 27
    Last Post: 07-29-2009, 10:57 PM
  5. RE: [ Release] Combat arms:Chams,Nospread and more...
    By eddieg in forum Combat Arms Hacks & Cheats
    Replies: 99
    Last Post: 07-28-2009, 06:49 PM