nx chamsi have a simple hotkey hack.... press 1 for nx chams.It injects fine but just doesnt activate the hacks when i press 1. does anyone know whats wrong? #include <windows.h> #define Engine 0x492CF0 bool IsGameReadyForHook() { if (GetModuleHandleA("d3d9.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("CShell.dll") != NULL) return true; return false; } void __cdecl PushToConsole(char *szCommand) { DWORD *LTClient = (DWORD*)(0x379E7D5C); void* CONoff = (void*)*(DWORD*)(*LTClient + 0x1000); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while (!IsGameReadyForHook()){ Sleep(200); } bool nxChams = false; if (GetAsyncKeyState(VK_NUMPAD1)&1) { if (nxChams) { PushToConsole("SkelModelStencil -1"); nxChams = false; } else { PushToConsole("SkelModelStencil 0" ); } } } DWORD WINAPI dwHackThread(LPVOID) { while (!IsGameReadyForHook()) Sleep(300); main(); return 0; } BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved) { DisableThreadLibraryCalls(hDll); if (dwReason == DLL_PROCESS_ATTACH) MessageBoxA(NULL, "hack nx chams|\n" "press 1", "meee|||||", MB_YESNO | MB_ICONWARNING); { CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); } return TRUE; } - - - Updated - - - i fixed some things but now when i press 1 to activate the hack, it lags then crashes... any errors? #include <windows.h> #define Engine 0x492CF0 bool IsGameReadyForHook() { if (GetModuleHandleA("d3d9.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("CShell.dll") != NULL) return true; return false; } void __cdecl PushToConsole(char *szCommand) { DWORD *LTClient = (DWORD*)(0x379E7D5C); void* CONoff = (void*)*(DWORD*)(*LTClient + 0x1000); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while (true) { bool nxChams = false; if (GetAsyncKeyState(VK_NUMPAD1)<0) { if (nxChams) { PushToConsole("SkelModelStencil -1"); nxChams = false; } else { PushToConsole("SkelModelStencil 0"); } } } } DWORD WINAPI dwHackThread(LPVOID) { while (!IsGameReadyForHook()) Sleep(300); main(); return 0; } BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved) { DisableThreadLibraryCalls(hDll); if (dwReason == DLL_PROCESS_ATTACH) MessageBoxA(NULL, "hack nx chams|\n" "press 1", "meee|||||", MB_YESNO | MB_ICONWARNING); { CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); } return TRUE; }