My second try to make CF hack
hi dudes where i am wrong :
#include<windows.h>
#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12 6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26 3)||(i==272)||(i==338)||(i==382)||(i==383)||(i==38 4))
#define WeaponMgr 0xA2A7E8
#define NoReload 0x2424
#define WeaponDamage 0x0754
#define NochangeDelay 0x2428
float Hithard = 999.0f;
float FragDmg = 0.0f;
char Msg[] = {'M','a','d','e',' ','B','y',' ','k','m','a','n','e','v','0','7','3',0 };
char Title[] = {'I','n','j','e','c','t','e','d',' ','!',0 };
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false,
fragdmg = false,
change = false;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD p0xA2A7E8 = *(DWORD*)(CShell + 0xA2A7E8);
//hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_F9) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_F10) &1) { fragdmg = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_F11) &1) { change = true; Beep(512, 100); }
if(reload)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + NoReload) = 100;
}
}
}
if(fragdmg)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL && (grenades))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + 0x0754) = 0;
}
}
}
if(change)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + 0x2428) = 9999;
}
}
}
Sleep(100);
}
}
bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Made by kmanev073","Injected !", 0);
system("start http://www.mpgh.net");
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
the error this time is only one :e:\my documents\visual studio 2010\projects\ko4ex hack\ko4ex hack\dllmain.cpp(100): fatal error C1075: end of file found before the left brace '{' at 'e:\my documents\visual studio 2010\projects\ko4ex hack\ko4ex hack\dllmain.cpp(88)' was matched
HELP PLS
yea i have leached a little bit ...
#include<windows.h>
#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12 6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26 3)||(i==272)||(i==338)||(i==382)||(i==383)||(i==38 4))
#define WeaponMgr 0xA2A7E8
#define NoReload 0x2424
#define WeaponDamage 0x0754
#define NochangeDelay 0x2428
float Hithard = 999.0f;
float FragDmg = 0.0f;
char Msg[] = {'M','a','d','e',' ','B','y',' ','k','m','a','n','e','v','0','7','3',0 };
char Title[] = {'I','n','j','e','c','t','e','d',' ','!',0 };
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false,
fragdmg = false,
change = false;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD p0xA2A7E8 = *(DWORD*)(CShell + 0xA2A7E8);
//hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_F9) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_F10) &1) { fragdmg = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_F11) &1) { change = true; Beep(512, 100); }
if(reload)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + NoReload) = 100;
}
}
}
if(fragdmg)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL && (grenades))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + 0x0754) = 0;
}
}
}
if(change)
{
if (p0xA2A7E8)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+ (4*i))) + 0x2428) = 9999;
}
}
}
Sleep(100);
}
}
bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Made by kmanev073","Injected !", 0);
system("start http://www.mpgh.net");
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
the error this time is only one :e:\my documents\visual studio 2010\projects\ko4ex hack\ko4ex hack\dllmain.cpp(100): fatal error C1075: end of file found before the left brace '{' at 'e:\my documents\visual studio 2010\projects\ko4ex hack\ko4ex hack\dllmain.cpp(88)' was matched
HELP PLS
yea i have leached a little bit ...


