Hello Mpghians!!!
Today i need some one that help me to do this Base Undetected
The code is:
Code:
#include "stdafx.h"
#include <Windows.h>
#include "exports.h"
#include <iostream>
//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
float Hithard = 999.0f;
float FragDmg = 0.0f;
DWORD WINAPI SndDrv(LPVOID)
{
bool onehit = false,
reload = true,
fragdmg = true,
norecoil = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//hotkeys toggle + beep sounds
//if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
//if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
//if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) &1) { fragdmg = true; Beep(512, 100); }
//one hit kill
if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = Hithard;
}
}
}
if(norecoil)
{
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 reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
}
}
}
//no grenade damage
if(fragdmg)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = FragDmg;
}
}
}
Sleep(100);
}
}
bool Rook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Espera(LPVOID)
{
while(!Rook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)SndDrv, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Espera,0,0,0);
}
return 1;
}
Regards,