void Hacks::ApplyWallHack(IDirect3DDevice9 *d3dDevice, D3DPRIMITIVETYPE device, INT baseVertexIndex, UINT MinVertexIndex, UINT Numvertices, UINT startIndex, UINT primCount);
{
if(/*team*/)
{
d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
d3dDevice->SetTexture(0, texGreen);
d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
}
if(/*team*/)
{
d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
d3dDevice->SetTexture(0, texRed);
d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
}
}
.



. Thankyou all for helping me out, i'm only new to hacking but am understanding it now! Hopefully once I start to improve ill be releasing a few things. the only thing im really struggling with now is d3d bases d3d menus and adding the actual hook into them.