Z8Games Crossfire[Need coder help]
Hello guys does anyone know why this does not work for Z8Games Crossfire?
I'm pretty sure I got the right LTClient pointer but would anyone double check for me?
When I press numpad 1 i hear beep but no wireframes.
Code:
#include <windows.h>
bool worldframe = false;
void __cdecl PushToConsole(char *szVal)
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if(dwCShell != NULL)
{
DWORD *LTClient = (DWORD*)((dwCShell + 0x2E39C8));
void *CONoff = (void*)*(DWORD*)(*LTClient + 0x1F8);
__asm
{
push szVal
call CONoff
add esp, 4
}
}
}
DWORD WINAPI Main(LPVOID lpParam)
{
for(;;Sleep(100))
{
__asm pushad
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
worldframe = !worldframe;
Beep(500, 500);
}
if(worldframe)
PushToConsole("WireFrame 1");
else
PushToConsole("WireFrame 0");
__asm popad
}
return EXIT_SUCCESS;
}
DWORD WINAPI MainThread(LPVOID lpParam)
{
while(GetModuleHandleA("CShell.dll") == NULL)
Sleep(200);
CreateThread(0, 0, Main, 0, 0, 0);
return EXIT_SUCCESS;
}
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hInst);
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(0, "Injected", "Injected", MB_OK);
CreateThread(0, 0, MainThread, 0, 0, 0);
}
return TRUE;
}
Note: If anyone got LT pointer from me and got it working please tell me.
I'm not sure if that's the right LTC! And also some ptc commands dont work! Try another one!
i was gunna say that just now! Try using the whitewalls code or look in the cshell!
No that's patched then! Do you have a bypass?