only dllmain.cpp lang ba ang gagalawin ko??
or
pati ung array.cpp & stdafx.cpp ??
And but ganun
when i click start debugging
this happens =.=
Help.. argh! xD
And can you pls. see to it if I am wrong? =)
Code:
#include <Windows.h>
bool LogIn = false;
#define WeaponMgr 0xB65E94
#define NoRecoil1 0x34C0
#define NoRecoil2 0x34C0
#define NoRecoil3 0x34C4
#define NoRecoil4 0x3B20
#define NoRecoil5 0xE98
#define NoRecoil6 0x1000
void Hacks()
{
bool NoRecoil = true;
while(1)
{
DWORD CShell = (DWORD) GetModuleHandleA("CShell.dll") ;
PDWORD Weapon = (PDWORD)(CShell + 0xA9BAE0 );
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//DWORD dwPlayerPointer = *(DWORD*)( CShell + PlayerPointer);
if (NoRecoil)
if (pWeaponMgr) {
for (int i=0; i<577; i++) {
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
DWORD pNoRecoil = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<9; 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;
}
}
}
}
}
Sleep (100);
}
}
DWORD WINAPI Call(LPVOID)
{
Hacks();
return 1;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd") && !LogIn)
{
LogIn = true;
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Call,0,0,0);
DisableThreadLibraryCalls(hDll);
}
return 1;
}
copied ei sorri xD pero inedit ko iba =)