[Release] Chams!
Tested - Yes.
Working - Yes.
Credits - Me and my friend found this code. I can't say the website we used cause I would be advertising.
[php]void Cham(IDirect3DDevice9* device, LPDIRECT3DTEXTURE9 tex1, LPDIRECT3DTEXTURE9 tex2, D3DPRIMITIVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
DWORD dwOldZEnable;
device->SetTexture(0,tex1);
device->SetRenderState(D3DRS_ALPHABLENDENABLE,false);
device->GetRenderState(D3DRS_ZENABLE,&dwOldZEnable);
device->SetRenderState(D3DRS_ZENABLE,D3DZB_FALSE);
device->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
device->DrawIndexedPrimitive(Type,BaseVertexIndex,MinVert exIndex,NumVertices,startIndex,primCount);
device->SetRenderState(D3DRS_ZENABLE,dwOldZEnable);
device->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
device->SetTexture(0,tex2);
device->SetRenderState(D3DRS_ALPHABLENDENABLE,false);
}[/php]
[php]if(chams)
{
if(Players && !TEX_HAND)
{
Cham(pDev texBlue,texGreen, Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
}[/php]
This is totally noob proof!