so i have but me too don't work..
and i have bypass...
Code:
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE pType D3DparamX,UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount )
{
_asm pushad;
LPDIRECT3DVERTEXBUFFER9 Stream;
UINT Offset = 0;
UINT Stride = 0;
if(pDevice->GetStreamSource(0,&Stream,&Offset,&Stride) == D3D_OK)
{
Stream->Release();
}
if (CH_cross==1)
{
int x = ( GetSystemMetrics( 0 ) / 2);
int y = ( GetSystemMetrics( 1 ) / 2);
D3DRECT rec = { x - 10, y, x + 10, y + 1};
D3DRECT rec2 = { x, y - 10, x + 1, y + 10};
pDevice->Clear(1, &rec, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
}
#define Stride1 36
#define Stride2 32
if(WallHack==1)
{
if(Stride == Stride1 && Stride2 )
{
pDevice->SetRenderState( D3DRS_SRCBLEND, 3 );
pDevice->SetRenderState( D3DRS_DESTBLEND, 4 );
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, true );
pDevice->SetRenderState( D3DRS_ZENABLE,false);
}
}
{
if(fCHUMS == 1){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,0,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 2){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,50,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}// "Orange","Blue","Green","White","Black",Yellow"
if(fCHUMS == 3){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,0,255));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 4){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,0,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 5){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,100,100));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 6){
if(Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(0,255,255,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 1){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,0,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 2){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,50,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 3){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,0,255));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 4){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,0,0));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 5){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,0,100,100));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 6){
if(Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(0,255,0,255));pDevice->SetRenderState(D3DRS_ZENABLE,false);}}}
_asm popad;
return pDrawIndexedPrimitive(pDevice,pType D3DparamvalX,nMinIndex,nNumVertices,nStartIndex,nPrimitiveCount);
}
help pls...