void Hacks()
{
bool iNoBugDamage = true;
while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("Cshell.dll");
if(iNoBugDamage)
{
*(float *)(CShell + 0x310F5C) = 0.0f;
}
}
}
DWORD CShell = (DWORD)GetModuleHandleA("Cshell.dll");
if(CShell != NULL)
{
*(float *)(CShell + 0x310F5C) = 0.0f;
messagebox(0, "its working", "NoBugDamage", mb_ok );
}
else
{
Beep(1000, 1000);
}

BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{ Sleep(10000);
switch (ul_reason_for_call)
{
DisableThreadLibraryCalls(hModule);
case DLL_PROCESS_ATTACH:
Hacks();
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
#define boolean bool
bool iNoBugDamage = true;
inline boolean IsHooked( void )
{
if( GetModuleHandle( "CShell.dll" ) != NULL ) return true;
return false;
}
then..
while( !IsHooked() )
Sleep(200);
while( true )
{
DWORD CShell = (DWORD)GetModuleHandleA( "Cshell.dll" );
if( iNoBugDamage )
{
*(float *)( CShell + 0x310F5C ) = 0.0f;
}
}
Sleep(10000);