Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- #define HEX_ADR_PTR_PLAYERPOINTER 0x9E27B0
- #define DEC_ADR_PTR_PLAYERBASE 1169880
- #define DEC_ADR_OFS_PAUSEALLZOMBIES_1 66260
- BOOL IsPlayer()
- {
- DWORD dwPlayerPtr = *(DWORD*)(HEX_ADR_PTR_PLAYERPOINTER);
- if(dwPlayerPtr != 0)
- {
- return TRUE;
- }
- else
- {
- return FALSE;
- }
- }
- struct CPauseAllZombies
- {
- char xPauseAll[DEC_ADR_OFS_PAUSEALLZOMBIES_1]; // 0x0
- BYTE PauseAll_1; // 0x102D4
- BYTE PauseAll_2; // 0x102D5
- BYTE PauseAll_3; // 0x102D6
- BYTE PauseAll_4; // 0x102D7
- };
- struct CBase
- {
- char xUserbase[DEC_ADR_PTR_PLAYERBASE]; // 0x0
- CPauseAllZombies** player; // 0x11D9D8
- };
- CBase* pBase = (CBase*)(HEX_ADR_PTR_PLAYERPOINTER);
- BOOL PauseAllZombies;
- void PauseZombiesLoop()
- {
- if(GetAsyncKeyState(VK_F4) &1)
- {
- PauseAllZombies = (!PauseAllZombies);
- }
- if(PauseAllZombies == TRUE)
- {
- for(int index = 4; index < 32; index ++)
- {
- CPauseAllZombies* pZombie = pBase->player[index];
- pZombie->PauseAll_1=0;
- pZombie->PauseAll_2=0;
- pZombie->PauseAll_3=0;
- pZombie->PauseAll_4=0;
- }
- }
- }
- void PauseZombiesThread()
- {
- for(;;)
- {
- if(PauseAllZombies == TRUE)
- {
- PauseZombiesLoop();
- }
- if(PauseAllZombies == FALSE)
- {
- Sleep(200);
- }
- else
- {
- Sleep(-0);
- }
- }
- }
- BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
- {
- DisableThreadLibraryCalls(hDll);
- if(dwReason == DLL_PROCESS_ATTACH)
- {
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)(PauseZombiesThread), 0, 0, 0);
- return TRUE;
- }
- }
Add Comment
Please, Sign In to add comment