Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <Windows.h>
  2.  
  3. int *health = (int*)0x01B3F3C4;
  4.  
  5. void Godmode()
  6. {
  7.     Beep(500,500);
  8.     while (1)
  9.     {
  10.         *health = 9999;
  11.         Sleep(100);
  12.     }
  13. }
  14.  
  15. BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
  16. {
  17.     if (fdwReason == DLL_PROCESS_ATTACH)
  18.     {
  19.         DisableThreadLibraryCalls(hinstDLL);
  20.         CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)&Godmode,0,0,NULL);
  21.         return TRUE;
  22.     }
  23.     return FALSE;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement