hey guys i try to make a damm aimobt but after 7sec. i inject the .DLL File The game crashes what can i do???????
this is the code:
mem_hacks.h:
Code:
BOOL hackEnabled = true;
BYTE JMP[1] = {0xEB};
BYTE NopTwo[2] = {0x90, 0x90};
BYTE NopSix[6] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
BYTE ColdBloodedo[2] = {0x75, 0x6F};
BYTE ChopperESPo1[2] = {0x75, 0x23};
BYTE ChopperESPo2[2] = {0x74, 0x09};
BYTE ChopperESPo3[2] = {0x74, 0x09};
BYTE Nametagso1[6] = {0x0F, 0x85, 0xF9, 0x00, 0x00, 0x00};
BYTE Nametagso2[6] = {0x0F, 0x84, 0xD2, 0x00, 0x00, 0x00};
BYTE Nametagso3[6] = {0x0F, 0x84, 0xC5, 0x00, 0x00, 0x00};
BYTE Nametagso4[6] = {0x0F, 0x84, 0xBD, 0x00, 0x00, 0x00};
BYTE Nametagso5[6] = {0x0F, 0x85, 0xA3, 0x00, 0x00, 0x00};
BYTE DrawThroughWallo[2] = {0x74, 0x06};
BYTE ThermalVisiono1[2] = {0x74, 0x03};
BYTE ThermalVisiono2[1] = {0x74};
BYTE BlackWhiteFixo[6] = {0x0F, 0x84, 0xBD, 0x00, 0x00, 0x00};
DWORD ColdBloodedFix = 0x59ED4E;
DWORD ChopperESP1 = 0x4E0260;
DWORD ChopperESP2 = ChopperESP1 + 0x8;
DWORD ChopperESP3 = ChopperESP1 + 0x1A;
DWORD Nametags1 = 0x5825D6;
DWORD Nametags2 = Nametags1 + 0x27;
DWORD Nametags3 = Nametags1 + 0x34;
DWORD Nametags4 = Nametags1 + 0x3C;
DWORD Nametags5 = Nametags1 + 0x56;
DWORD DrawThroughWall = 0x5823BC;
DWORD ThermalVision1 = 0x599C4B;
DWORD ThermalVision2 = 0x599CAE;
DWORD BlackWhiteFix = 0x50D5F1;
void writeMem(DWORD dwAddress, void* bytes, DWORD dwSize) {
DWORD flOldProtect = 0;
VirtualProtect((void*)dwAddress, dwSize, PAGE_EXECUTE_READWRITE, &flOldProtect);
memcpy((void*) dwAddress, bytes, dwSize);
VirtualProtect((void*)dwAddress, dwSize, flOldProtect, &flOldProtect);
}
ace.cpp:
Code:
#include <iostream>
#define SetESP
int main( int Intro )
{
printf("AcE's Aimbot V1.0\n");
return 0;
}
main.h:
Code:
#include <windows.h>
#include <fstream>
#include <stdio.h>