Hello MPGHIANS!!
This is my Base,all is great,but went i add no recoil code i get X-trap + Client Error.
This is my Base:
Code:
#include "stdafx.h"
#include <Windows.h>
#include "exports.h"
#include <iostream>
#include "logincheck.h"
//Definacion Granadas
#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==262)||(i==263)||(i==272)||(i==288)||(i==313)||(i==338)||(i==357)||(i==382)||(i==383)||(i==384)||(i==391)||(i==416)||(i==423)||(i==424)||(i==425)||(i==438)||(i==473)||(i==481)||(i==500)||(i==513)||(i==519)||(i==554))
//Offsets / Pointers
#define WeaponMgr 0xA974A0
#define NoReload 0x269C
#define NoChangeDelay 0x26A0
#define WeaponDamage 0x7F8
void SndDrv(VOID)
{
bool onehit = false,
reload = true,
recoil = true,
fragdmg = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//no reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<576; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
}
}
}
if(recoil)
{
if(pWeaponMgr)
{
for(int i=0; i<576; i++)
{
DWORD wep = *(DWORD*)(WeaponMgr +(4*i));
if(wep)
{
for(int y=0; y<10; y++)
{
*(float*)(wep + 0x225C+y*4) = 0;
*(float*)(wep + 0x20F4+y*4) = 0;
*(float*)(wep + 0x1F8C+y*4) = 0;
*(float*)(wep + 0x1B00+y*4) = 0;
*(float*)(wep + 0x192C+y*4) = 0;
*(float*)(wep + 0x0684+y*4) = 0;
}
}
}
}
}
//no grenade damage
if(fragdmg)
{
if (pWeaponMgr)
{
for(int i=0; i<576; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = 0;
}
}
}
}
Sleep(200);
}
DWORD WINAPI Runner (LPVOID)
{
SndDrv();
return 1;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
}
if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") && !LogIn)
{
DisableThreadLibraryCalls(hDll);
LogIn = true;
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Runner, NULL, NULL, NULL);
}
return true;
}
'
@giniyat101
@ToXiC Coder
@Assassin's Creed
@Swag
@-iFaDy..*