How it work ? I'm noob help me. I must write this to console?
//This is a Source Code for Non PB Servers and PeZBots
// I Wrote this Source and Works for me
Code:#include <windows.h> HANDLE CallOfDuty4 = GetCurrentProcess(); BYTE NoSpread[] = {0x74, 0x15};//0x75, 0x15 = OFF BYTE NoRecoil[] = {0x75, 0x08};//0x74, 0x08 = OFF BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved) { if (dwReason == DLL_PROCESS_ATTACH) { WriteProcessMemory(GetCurrentProcess(), (void*)0x00416C7B, &NoSpread, 2, 0); WriteProcessMemory(GetCurrentProcess(), (void*)0x0041A7BD, &NoRecoil, 2, 0); } return true; }
Last edited by Jorndel; 05-03-2012 at 01:59 PM. Reason: Added in Code
How it work ? I'm noob help me. I must write this to console?
I don't understand by you get the pseudo handle of the Call of Duty 4 here:Code:// This is a Source Code for Non PB Servers and PeZBots // I Wrote this Source and Works for me #include <windows.h> HANDLE CallOfDuty4 = GetCurrentProcess(); BYTE NoSpread[] = {0x74, 0x15};//0x75, 0x15 = OFF BYTE NoRecoil[] = {0x75, 0x08};//0x74, 0x08 = OFF BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved) { if (dwReason == DLL_PROCESS_ATTACH) { WriteProcessMemory(GetCurrentProcess(), (void*)0x00416C7B, &NoSpread, 2, 0); WriteProcessMemory(GetCurrentProcess(), (void*)0x0041A7BD, &NoRecoil, 2, 0); } return true; }
... and don't use it as this (since you don't use this variable):Code:HANDLE CallOfDuty4 = GetCurrentProcess();
Code:WriteProcessMemory(CallOfDuty4, (void*)0x00416C7B, &NoSpread, 2, 0); WriteProcessMemory(CallOfDuty4, (void*)0x0041A7BD, &NoRecoil, 2, 0);
Last edited by Wonderful; 05-02-2012 at 10:18 PM.
Last edited by yoda23456; 05-16-2012 at 10:40 AM.
please rise the file in exe because I not use the c + +