Kann mir bitte einer bei Chams helfen :/
Bei mir werden nur die Köpfe und die Waffen farbig...
Code:
if(Items.Chams == 1)
{
if(Items.Color1 >0)
if(m_Stride == 32)
{
pDevice->SetRenderState(D3DRS_FOGENABLE,false);
pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
if(Items.Color1==1) pDevice->SetTexture(1,White);
if(Items.Color1==2) pDevice->SetTexture(1,Red);
if(Items.Color1==3) pDevice->SetTexture(1,Green);
if(Items.Color1==4) pDevice->SetTexture(1,Blue);
if(Items.Color1==5) pDevice->SetTexture(1,Black);
if(Items.Color1==6) pDevice->SetTexture(1,Purple);
if(Items.Color1==7) pDevice->SetTexture(1,Grey);
if(Items.Color1==8) pDevice->SetTexture(1,Yellow);
if(Items.Color1==9) pDevice->SetTexture(1,Orange);
if(Items.Color1==3) pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
}