-
Автор темы
- #1
C++:
#include "include.h"
using namespace offsets;
BOOL WINAPI bunnyhop(HMODULE createModule)
{
DWORD gameModule = (DWORD)GetModuleHandle("client.dll");
while (!GetAsyncKeyState(VK_END))
{
DWORD LocalPlayer = *(DWORD*)(gameModule + dwLocalPlayer);
if (LocalPlayer == NULL) continue;
DWORD flag = *(int*)(LocalPlayer + m_fFlags);
if (GetAsyncKeyState(VK_SPACE) && flag & (1 << 0 ));
{
*(DWORD*)(gameModule + dwForceJump) = 6;
}
}
FreeLibraryAndExitThread(createModule, 0);
return 0;
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)bunnyhop, 0, 0, 0);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Последнее редактирование модератором: