Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1345467890-098765432134567897654
- #include <Windows.h>
- void testfly()
- {
- DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
- DWORD pPlayerClient = *(DWORD *)(CShell + 0x1169768);
- *(DWORD*)(pPlayerClient + 0xBEA) = 257; /// Jump SPace
- *(DWORD*)(pPlayerClient + 0x624) = 1;
- DWORD offset1 = (DWORD)(pPlayerClient + 0x4C4);
- DWORD valuefly = (DWORD)(offset1 + 0x154);
- if (valuefly = 0)
- {
- *(DWORD*)(pPlayerClient + 0x628) = 768; //for jump higher
- }
- }
- bool IsGameReadyForHook()
- {
- if (GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFx.fxd") != NULL)
- return true;
- return false;
- }
- void Engine()
- {
- while (!IsGameReadyForHook()) {
- Sleep(200);
- }
- while (true)
- {
- testfly();
- }
- }
- extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
- {
- switch (dwReason)
- {
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hDLL);
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
- break;
- case DLL_PROCESS_DETACH:
- break;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement