Here u go again
Now i added the gamestate, so u dont need to turn off when joining a game
VirusTotal - Free Online Virus, Malware and URL Scanner
Ghost8631.rar - Verificador de malware do Jotti
Source Code:
Code:
#include <Windows.h>
bool bNoReload;
#define Gamestatus 0x377C0458
#define NoReload 0x3740A8A4
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void Main(void)
{
while(1)
{
switch(*(INT*)Gamestatus) {
case 1:
if(GetAsyncKeyState(VK_DELETE)&1)
{
bNoReload = !bNoReload;
}
if(bNoReload)
{
memcpy( (PBYTE)NoReload,(PBYTE)"\x90\x90\x90\x90\x90\x90",6 );
}
else
{
memcpy( (PBYTE)NoReload,(PBYTE)"\x0F\x84\xB1\x01\x00\x00",6 );
}
break;
case 5:
memcpy( (PBYTE)NoReload,(PBYTE)"\x0F\x84\xB1\x01\x00\x00",6 );
break;
}
}
}
DWORD WINAPI iniMain (LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
Main();
return 0;
}
bool WINAPI DllMain (HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL,NULL,iniMain,NULL,NULL,NULL);
}
return true;
}
@Eminem
@Boss
@Ghost8631
BTW boss, im making my own hack, but is not finished yet ...