ich sitz hier grad an nem menü hack mit der base von cyber xD schonma vielen dank^^
naja eigentliches problem ist:
Supermaster:
PHP Code:
void SuperMaster()
{
if (supermaster == 1)
{
DWORD Svp = *(DWORD*)ADR_SERVERPOINTER;
if(Svp != 0)
{
*(int*)(Svp+OFS_SUPERMASTER) = 1;
}
}
}
iwie kommt da nix bei raus und ich kann nicht mehr schießen
Nowater:
PHP Code:
void NoWater()
{
if (nowater == 1)
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_NOWATER, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOWATER, &t , sizeof(t));
VirtualProtect((void*)ADR_NOWATER, sizeof(t), Protection, 0);
}
}
das bewirkt iwie nichts...
FastAll:
PHP Code:
oid FastHealth()
{
if (fasthealth == 1)
{
*(float*)ADR_FASTHEALTH = 99.0f;
}
}
void FastAmmo()
{
if (fastammo == 1)
{
*(float*)ADR_FASTAMMO = 99.0f;
}
}
void FastRepair()
{
if (fastrepair == 1)
{
*(float*)ADR_FASTREPAIR = 99.0f;
}
}
void FastFlag()
{
if (fastflag == 1)
{
*(float*)ADR_FASTFLAG = 99.0f;
}
}
wr crasht beim starten
Scope:
PHP Code:
void Scope()
{
if (scope == 1)
{
if(GetAsyncKeyState(VK_RBUTTON))
{
long value = 1;
DWORD Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(value), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &value , sizeof(value));
VirtualProtect((void*)ADR_SCOPE, sizeof(value), Protection, 0);
}
else
{
long value = 7;
DWORD Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(value), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &value , sizeof(value));
VirtualProtect((void*)ADR_SCOPE, sizeof(value), Protection, 0);
}
}
}
geht nicht wieder aus bzw. ist von anfang an an.
FFASpawn:
PHP Code:
void FFASpawn()
{
if(ffaspawn == 1)
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_FFASPAWN, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_FFASPAWN, &t , sizeof(t));
VirtualProtect((void*)ADR_FFASPAWN, sizeof(t), Protection, 0);
}
}
wr crahst wenn man es anmacht
und dann noch ne explizite frage an cyber:
du hast bei dir ja schon m_Stride definiert. kann ich das für die chams und so benutzen oder muss ich das so:
PHP Code:
HRESULT WINAPI mySetStreamSource(LPDIRECT3DDEVICE9 pDevice, UINT nStreamNumber, LPDIRECT3DVERTEXBUFFER9 pStreamData, UINT nStride)
{
if (nStride != NULL ) myStride = nStride;
return pSetStreamSource(pDevice, nStreamNumber, pStreamData, nStride);
}
in setstreamsource nochmal neu machen?
und wenn ich dann in mydraw... chams versuche kratzt wr auch beim starten ab...:
PHP 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();
}
_asm pushad;
DWORD dwOldZEnable = D3DZB_TRUE;
if(Color)
{
GenerateTexture(pDevice, &White, WHITE2);
GenerateTexture(pDevice, &Red, RED2);
GenerateTexture(pDevice, &Green, GREEN2);
GenerateTexture(pDevice, &Blue, BLUE2);
GenerateTexture(pDevice, &Black, BLACK2);
GenerateTexture(pDevice, &Purple, PURPLE2);
GenerateTexture(pDevice, &Grey, GREY2);
GenerateTexture(pDevice, &Yellow, YELLOW2);
GenerateTexture(pDevice, &Orange, ORANGE2);
Color = false;
}
if (chams == 1)
{
if (myStride == 44)
{
pDevice->SetRenderState(D3DRS_ZENABLE,false);
pDevice->SetTexture(0,Red);
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE,true);
pDevice->SetTexture(0, Green);
}
}
return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
schonmal thanks an alle die mir helfen :p
edit: wenn ich es so mache also die chams:
PHP Code:
pDevice->SetRenderState(D3DRS_ZENABLE,false);
pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
pDevice->SetTexture( 0, Red);
pDevice->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex,
primCount);
pDevice->SetRenderState(D3DRS_ZENABLE,true);
pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
pDevice->SetTexture( 0, Green);
geht es auch nicht..