why i have a xtrap error
Why have I a xtrap error??
code:
DON'T COPY PLS
code:
Code:
#include <windows.h>
#include "exports.h"
#define WeaponMgr 0xAAC3D0
#define FallDamage 0xAAC3B4
#define NoRecoil1 0x1934
#define NoRecoil2 0x1938
#define NoRecoil3 0x193C
#define NoRecoil4 0x1940
#define NoRecoil5 0x1944
#define NoRecoil6 0x1948
#define NoRecoil7 0x2478
#define NoRecoil8 0x248C
#define NoRecoil9 0x2598
#define NoRecoil10 0x1FA0
#define NoRecoil11 0x2108
#define NoRecoil12 0x2634
#define NoRecoil13 0x2634
#define NoRecoil14 0x259C
bool noreloadd= false;
#define FastKnife1 0xA28 //lets add fask knife :P
#define FastKnife2 0xA70
#define FastKnife3 0xA4C
#define NoReload 0x26A4
#define NoSpread 0x26AC
#define WeaponRange 0x7EC
BOOL WINAPI Main (LPVOID)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//No reload code starts here
if(noreloadd)
{
if (pWeaponMgr){
for(int i=0; i<577; i++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
DWORD Noreload = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<10; y++){
if(Noreload){
*(float*)(Noreload+ (NoReload + (4*y))) = 10.0f;//0x269c WAS THE ould addy now lets update it, thats it, BUT, WeaponMgr is an offset and need to be updated too
}
}
}
}
}
}
// no reload code ends here :D
//fast knife :P code starts here
if (pWeaponMgr){
for(int i=0; i<577; i++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
DWORD Noreload = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<10; y++){
if(Noreload){
*(float*)(Noreload+ (FastKnife1 + (4*y))) = 2;//for no errors, put 2 k? k but can you to add hotkeys to no reload?> klets try
*(float*)(Noreload+ (FastKnife2 + (4*y))) = 2;
*(float*)(Noreload+ (FastKnife3 + (4*y))) = 2;
}
}
}
}
}
//fast knife code ends here :D
//No Recoil :
if (pWeaponMgr){
for(int i=0; i<577; i++){//see this-? its called a loop, soo 577 weapons will be afected. ow...
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
DWORD pNoRecoil = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<11; y++){
if(pNoRecoil){
*(float*)(pNoRecoil + (NoRecoil1 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil2 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil3 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil4 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil5 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil6 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil7 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil8 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil9 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil10 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil11 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil12 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil3 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil4 + (4*y))) = 0.0f;
}
}
}
}
}
//No recoil ends
//i will send you loadlib but download oll dbg from internet k? ok but why ? you can update your hack with it, i will send you loadlib, lol accept it xD how ? :D wait,
Sleep(100);
return 1;
}
//wait
bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(300);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
//CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hotkys, NULL, NULL, NULL);
return 0;
}
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){
if(fdwReason==DLL_PROCESS_ATTACH){
Beep(1000,1000);
CreateThread(NULL,0,Wait,NULL,0,NULL);
}
return TRUE; //wath i press=
}
DON'T COPY PLS


