Chams

Posts 1–15 of 17 · Page 1 of 2
Chams
Ok, i don't have erreur, but, my chams not work


Code:
UINT m_Stride;
UINT OffsetInBytes;
LPDIRECT3DVERTEXBUFFER9 StreamData;

HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
	if(pDevice->GetStreamSource(0,&StreamData,&OffsetInBytes,&m_Stride) == D3D_OK) 
	{
		StreamData->Release();
	}
	
	if(mi.chamsmenu==1)
	{
		if(mi.chams1 || !mi.chams1)
		{
			if(m_Stride == 36)
			{
				if(mi.chams1) pDevice->SetRenderState(D3DRS_LIGHTING,false);
				if(mi.chams1) pDevice->SetRenderState(D3DRS_ZENABLE,false);
				if(mi.chams1==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams1==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams1==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams1==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams1==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams1==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams1==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams1==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams1==9){pDevice->SetTexture(0, aWhite);}
				pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			}
			if(m_Stride == 36)
			{
				if(mi.chams1) pDevice->SetRenderState(D3DRS_LIGHTING,false);
				if(mi.chams1) pDevice->SetRenderState(D3DRS_ZENABLE,false);
				if(mi.chams1==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams1==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams1==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams1==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams1==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams1==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams1==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams1==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams1==9){pDevice->SetTexture(0, aWhite);}
				pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			}
			if(m_Stride == 32)
			{
				if(mi.chams1) pDevice->SetRenderState(D3DRS_LIGHTING,false);
				if(mi.chams1) pDevice->SetRenderState(D3DRS_ZENABLE,false);
				if(mi.chams1==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams1==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams1==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams1==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams1==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams1==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams1==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams1==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams1==9){pDevice->SetTexture(0, aWhite);}
				pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			}
		}
	}		


	if(mi.chamsmenu==1)
	{
		if(mi.chams2 || !mi.chams2)
		{
			if(m_Stride== 36){
				if(mi.chams2)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
				if(mi.chams2)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
				if(mi.chams2==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams2==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams2==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams2==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams2==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams2==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams2==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams2==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams2==9){pDevice->SetTexture(0, aWhite);}
			}
				if(m_Stride== 36){
				if(mi.chams2)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
				if(mi.chams2)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
				if(mi.chams2==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams2==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams2==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams2==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams2==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams2==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams2==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams2==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams2==9){pDevice->SetTexture(0, aWhite);}
			}
				if(m_Stride== 32){
				if(mi.chams2)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
				if(mi.chams2)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
				if(mi.chams2==1){pDevice->SetTexture(0, aRed);}
				if(mi.chams2==2){pDevice->SetTexture(0, aGreen);}
				if(mi.chams2==3){pDevice->SetTexture(0, aBlue);}
				if(mi.chams2==4){pDevice->SetTexture(0, aOrange);}
				if(mi.chams2==5){pDevice->SetTexture(0, aPurple);}
				if(mi.chams2==6){pDevice->SetTexture(0, aPink);}
				if(mi.chams2==7){pDevice->SetTexture(0, aBlack);}
				if(mi.chams2==8){pDevice->SetTexture(0, aCyan);}
				if(mi.chams2==9){pDevice->SetTexture(0, aWhite);}
			}
		}
	}		

	return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
who help ?
huh more details pls :S
Code:
int Color = false;
UINT m_Stride;
UINT OffsetInBytes;
LPDIRECT3DVERTEXBUFFER9 StreamData;
LPDIRECT3DTEXTURE9 cRed,cGreen,cBlue,cYellow,cPurple,cPink,cBlack,cCyan,cWhite;
Code:
int chamsmenu=0;
int chams1=0;
int chams2=0;
Code:
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
    if(FAILED(pD3Ddev->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;
}
Code:
if(Color)
	{
		GenerateTexture(pDevice, &cRed,		D3DCOLOR_ARGB (255 , 255,   0,    0 ));
		GenerateTexture(pDevice, &cGreen,	D3DCOLOR_ARGB (255 ,   0, 255,    0 ));
		GenerateTexture(pDevice, &cBlue,	D3DCOLOR_ARGB (255 ,   0,   0,  255 ));
		GenerateTexture(pDevice, &cYellow,	D3DCOLOR_ARGB (255 , 255, 255,    0 ));
		GenerateTexture(pDevice, &cPurple,	D3DCOLOR_ARGB (255 , 102,   0,  153 ));
		GenerateTexture(pDevice, &cPink,	D3DCOLOR_ARGB (255 , 255,  20,  147));
		GenerateTexture(pDevice, &cBlack,	D3DCOLOR_ARGB (255 , 0  ,   0 ,   0 ));
		GenerateTexture(pDevice, &cCyan , 	D3DCOLOR_ARGB (255 , 0  , 139 , 200 ));
		GenerateTexture(pDevice, &cWhite,	D3DCOLOR_ARGB (255 , 255, 255 , 255 ));
		Color = false;
	}
Code:
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
	if(pDevice->GetStreamSource(0,&StreamData,&OffsetInBytes,&m_Stride) == D3D_OK) 
	{
		StreamData->Release();
	}
	if(mi.chamsmenu==1)
	{
		if(mi.chams1 || !mi.chams1)
		{
			if(m_Stride == 36)
			{
				if(mi.chams1 ) pDevice->SetRenderState(D3DRS_ZENABLE, false);
				if(mi.chams1 ==1){pDevice->SetTexture(0, cRed);}
				if(mi.chams1 ==2){pDevice->SetTexture(0, cGreen);}
				if(mi.chams1 ==3){pDevice->SetTexture(0, cBlue);}
				if(mi.chams1 ==4){pDevice->SetTexture(0, cYellow);}
				if(mi.chams1 ==5){pDevice->SetTexture(0, cPurple);}
				if(mi.chams1 ==6){pDevice->SetTexture(0, cPink);}
				if(mi.chams1 ==7){pDevice->SetTexture(0, cBlack);}
				if(mi.chams1 ==8){pDevice->SetTexture(0, cCyan);}
				if(mi.chams1 ==9){pDevice->SetTexture(0, cWhite);}
				pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			
			}
		}
	}
	if(mi.chamsmenu==1)
	{
		if(mi.chams2 || !mi.chams2)
		{
			if(m_Stride == 32)
			{
				if(mi.chams2) pDevice->SetRenderState(D3DRS_ZENABLE, false);
				if(mi.chams2==1){pDevice->SetTexture(0, cRed);}
				if(mi.chams2==2){pDevice->SetTexture(0, cGreen);}
				if(mi.chams2==3){pDevice->SetTexture(0, cBlue);}
				if(mi.chams2==4){pDevice->SetTexture(0, cYellow);}
				if(mi.chams2==5){pDevice->SetTexture(0, cPurple);}
				if(mi.chams2==6){pDevice->SetTexture(0, cPink);}
				if(mi.chams2==7){pDevice->SetTexture(0, cBlack);}
				if(mi.chams2==8){pDevice->SetTexture(0, cCyan);}
				if(mi.chams2==9){pDevice->SetTexture(0, cWhite);}
			}
		}
	}
	return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
why chams not work ?
They seem to be outdated.
ok how updated this ?
Quote Originally Posted by zarrock44 View Post
ok how updated this ?
You need to bypass your hack or try to use HideModule..
But don't ask me questions because i am not coder
I have bypass & hidemodule, and my detour is updated
Quote Originally Posted by zarrock44 View Post
I have bypass & hidemodule, and my detour is updated
When you inject your hack what happen?
yes the menu work. But chams not work
Quote Originally Posted by zarrock44 View Post
yes the menu work. But chams not work
So your problem is the code!
I'm not a coder so i can't help you, but wait i'm sure someone will help you
No there is not Chams...
Do you have the latest D3D pointer address?
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us