Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- DWORD CShell = 0;
- bool enableCopy = false;
- bool enableFire = false;
- DWORD sub_msgbox = 0;
- void ShowMessage(char* overtext)
- {
- __asm
- {
- push 0;
- push overtext;
- push 0;
- push 0x75;
- push 0x2E;
- call sub_msgbox;
- add ESP, 0x14;
- }
- }
- void Hack()
- {
- DWORD dwPlayerClient = *(DWORD*)(CShell + 0x11C6B50);
- DWORD View = *(DWORD*)(CShell + 0x11C6B08);
- DWORD Bag = *(DWORD*)(CShell + 0x11E2B80);
- if (dwPlayerClient == NULL || View == NULL || Bag == NULL) return;
- if (GetAsyncKeyState('B') & 1) {
- if (Bag)
- *(DWORD*)(Bag + 0xC) = 0;
- }
- if (GetAsyncKeyState('V') & 1)
- *(DWORD*)(View + 0x64) == 3 ? *(DWORD*)(View + 0x64) = 1 : *(DWORD*)(View + 0x64) = 3;
- if (GetAsyncKeyState(VK_F11) & 1) {
- enableCopy = !enableCopy;
- enableCopy ? ShowMessage("Copy enabled") : ShowMessage("Copy disabled");
- }
- if (enableCopy) *(DWORD*)(dwPlayerClient + 0x820) = 8;
- else *(DWORD*)(dwPlayerClient + 0x820) = 0;
- if (GetAsyncKeyState(VK_F10) & 1) {
- enableFire = !enableFire;
- enableFire ? ShowMessage("Fire enabled") : ShowMessage("Fire disabled");
- }
- if (enableFire) *(DWORD*)(dwPlayerClient + 0x6E8) = 3;
- *(DWORD*)(CShell + 0x11E5E30) = 256;
- }
- void Engine()
- {
- while (!GetModuleHandleA("ClientFx.fxd")) Sleep(200);
- CShell = (DWORD)GetModuleHandleA("CShell.dll");
- sub_msgbox = CShell + 0x175720;
- ShowMessage("By: QuangCFVN");
- while (1) {
- Hack();
- Sleep(10);
- }
- }
- 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)Engine, hModule, 0, 0);
- break;
- default:
- break;
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement