I'm sorry to say, but you're very confused man. I'll TRY to update your source code for you hold on ;D
---------- Post added at 06:02 AM ---------- Previous post was at 05:18 AM ----------
Here it is, u better thank me lol.
It might need slight updating I did it in a hurry, and YES it isn't my exact code I edited it as I don't want to fully give my code away :L Some parts are updated tut's.
IF YOU LEACH IT, at least give some people credit...
Code:
#include <windows.h>
#define WeaponMgr 0xDE6C0C
#define NoReload 0xC38
DWORD pNoReload = *(DWORD*)NoReload;
DWORD pWeaponMgr = *(DWORD*)WeaponMgr;
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
//====== WHAT YOU DID WRONGE,sorry lol. ================
//You created one huge section or region or whatever, I'm also new to C++.
//You need multiple ones, AND you dont have any DLL main ;)
//I'm putting my DLL main in and some of my source, but not doing all the work for you, It MIGHT be detected I'm not sure,
//but you'll have to learn how to make it undetected.
//Your Hack Runner here below. It will create a Thread with your hacks in it in Crossfire, I think.
BOOL WINAPI YourHacks(LPVOID) {
//You Need To Put Your Hacks Here. I'll put A No Reload One in here for you. THANK ME lol.
//This BELOW manages your weapons.
DWORD WeaponManager = *(DWORD*)((DWORD)GetModuleHandleA("CShell.dll") + WeaponMgr);
//======== BOOLS ===========
bool NoReload1 = false;
while(1)
{
//========== IF KEY PRESS ===========
if(GetAsyncKeyState(VK_F6)&1) {NoReload1=true ;Beep (1000,200);}
//============ WEAPON MANAGER ==========
if (WeaponManager){
for(int i=0; i<677; i++){
for(int y = 0; y<10; y++){
DWORD IndexWeaponManager = (*(unsigned long*)(WeaponManager + (4*i)));
if(IndexWeaponManager != NULL ){
//============ NO RELOAD ============
if(NoReload1){
*(float*)(IndexWeaponManager + (NoReload + (4*y))) = (float)100.0;
}
}
}
}
}
}
}
//This BELOW is what creates a thread in-game with your hacks.(I created a new section called"YourHacks" above.
BOOL WINAPI runner(LPVOID)
{
Sleep(9800);
try {
DWORD dllfile = (DWORD)GetModuleHandleA("CShell.dll");
if(dllfile == false) {
throw 1;
}
}
catch (int error) {
switch(error) {
case 1:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)YourHacks, NULL, NULL, NULL);
return false;
default:
//Unkown error!
return false;
}
}
Sleep(355);
return true;
}
//This Stuff Below is simply what I use to Hook in-game. It MIGHT be detected, you'll have to learn how to make it undetected
bool Ready4Hooking()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI WaitDude(LPVOID)
{
while(!Ready4Hooking()) Sleep(144);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
return 0;
}
// MY DLL MAIN.
BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if( dwReason == DLL_PROCESS_ATTACH )
{
DisableThreadLibraryCalls( hDll );
MessageBox( 0, L"kinibayVIP4", L"HOOKING TEST", 0 );
CreateThread( NULL, NULL, (LPTHREAD_START_ROUTINE)WaitDude, NULL, NULL, NULL);
Beep(1000,1000);
}
return TRUE;
}
---------- Post added at 06:04 AM ---------- Previous post was at 06:02 AM ----------
That ^^ Might Get detected, so make a diff account to test on.