QuestionMy base is correct??Help me please.

Posts 1–4 of 4 · Page 1 of 1
My base is correct??Help me please.
Code:
// Incluindo Arquivos do Sistema
#include "windows.h"
#include <iostream>

// definindo pontos da memoria do hack
#define WeaponMgr	0xA68F80
#define NoReload	0x269C	 
#define NoChange	0x26A0	
#define NoWeaponWeight		0x2454	
#define MaxRange  0x7EC


bool ActivateHack		= true; 

// Função de Declaração do Codigo do Hack... Traduzindo: Aqui é onde ficam os hacks
DWORD WINAPI HackSource(LPVOID){

// repetição até informar um valor falso
while(1){

// Importando a Biblioteca do Crossfire: CShell,dll
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

// Codigo para Funcionamento do hack de armas
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);


// se o noReload Estiver Ativado
if(ActivateHack){
	// e isso for uma arma
	if (pWeaponMgr){
		// repete o codigo para todas as armas.. acrescentando + 1
		for(int i=0; i<560; i++){
			// se a arma for valida || for diferente de " NADA "
			if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
				*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 45.0f; // valor do tempo de reload || 100 || Fast Reload
				*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 100.0f; // tempo para trocar de arma || 100 || Fast Change
				*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoWeaponWeight) = 0.0f; // damage da arma || 100 || Matar Zombie com um tiro
			    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + MaxRange) = 999999999.0f;
			
			}
		}
	}
}

Sleep(100); // esperar 100 Milisegundos
}
}

bool Cliente(){
	if(GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFx.fxd") != NULL) 
	return 1; 
	return 0;
}
DWORD WINAPI Wait(LPVOID){
	while(!Cliente()) Sleep(200);
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackSource, NULL, NULL, NULL);
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ){
DisableThreadLibraryCalls(hDll);

if(dwReason == DLL_PROCESS_ATTACH)
{

	// Mensagem de Créditos
	MessageBoxA(0, "By: Silveriinha." ,"Injected", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)HackSource,0,0 ,0);
}
return 1;
}
What kind of errors you get while compiling?
I guess he isnt getting any errors.Just the features dont work in-game
Gave no error.This way is right, or the Base does not work that way?
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?