Adress problem apparently.[Help Please]

Posts 1–11 of 11 · Page 1 of 1
Adress problem apparently.[Help Please]
Hey guys, I am working on a hotkey hack. I added 2 hacks to it. Crosshair, and Chams. When Combat Arms is loading, it disconnects. Please help me fix this.

Code:
#include <windows.h>
bool chams = false;
bool cross = false;
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main() {
while(true) {

if(GetAsyncKeyState(VK_NUMPAD1)&1){
chams =! chams;
}
if(chams)
{
PushToConsole("SkelModelStencil 1");
} else {
PushToConsole("SkelModelStencil 0");
}
if(GetAsyncKeyState(VK_NUMPAD2)&1){
cross =! cross;
}
if(cross) {
PushToConsole("CrossHairR 255");
} else {
PushToConsole("CrossHairR 0");
}
}
}
DWORD WINAPI dwHackThread(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, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
Quote Originally Posted by Alessandro10 View Post
Ltc is wrong
What is the right LTC?
Quote Originally Posted by yaserifti1 View Post
What is the right LTC?
Code:
0x37817E30
Quote Originally Posted by yaserifti1 View Post
Hey guys, I am working on a hotkey hack. I added 2 hacks to it. Crosshair, and Chams. When Combat Arms is loading, it disconnects. Please help me fix this.

Code:
#include <windows.h>
bool chams = false;
bool cross = false;
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main() {
while(true) {

if(GetAsyncKeyState(VK_NUMPAD1)&1){
chams =! chams;
}
if(chams)
{
PushToConsole("SkelModelStencil 1");
} else {
PushToConsole("SkelModelStencil 0");
}
if(GetAsyncKeyState(VK_NUMPAD2)&1){
cross =! cross;
}
if(cross) {
PushToConsole("CrossHairR 255");
} else {
PushToConsole("CrossHairR 0");
}
}
}
DWORD WINAPI dwHackThread(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, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
Lrn2spell
-.- Address is spelled wrong and Lrn2code
Quote Originally Posted by Sid View Post
Lrn2spell
-.- Address is spelled wrong and Lrn2code
Lrn2realise when problems are solved. -.-
Console command hacks must be called in present.
Quote Originally Posted by NOOB View Post
Console command hacks must be called in present.
I kinda just learned how to code, what does that mean?
Quote Originally Posted by yaserifti1 View Post
I kinda just learned how to code, what does that mean?
Present is something in D3D...
Quote Originally Posted by topblast View Post


Present is something in D3D...
Wut is this "D3D" You SHPEAK uf?
Stop posting to this thread this problem has been solved!
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us