FRUSTRATED!

Posts 115 of 40 · Page 1 of 3
FRUSTRATED!
UGH! I am getting frustrated! I made a hack that uses hot keys. With the help of Alessandro, I have been able to not d/c when testing it. Now none of the fking hacks work! Somebody please help. No compiling errors, no Combat Arms errors, they just don't work when the correct button is pushed. Here is the code.

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* )( 0x37817E30 );
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;
}
U base will not work Because this part is Detected:
Code:
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x37817E30 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
Here's a public console calling method.

Code:
void __cdecl CPush(const char *Command, char *Value)
{
char *PCommand = new char[256]; //Define PCommand
sprintf(PCommand, "%s %s", Command, Value); //Define PCommand as "Command(Space)Value"
DWORD LTC = 0x00485E10;// //Define the LTC (Gordon's LTC)
void *Control = (void*)LTC; //Define Control method as the LTC
__asm //Start of ASM code
{
push PCommand;
call Control;
add esp, 4;
}
}
To use , here is an example :
Code:
CPush("ActivationDistance","99999");
Notice how theres another " after the name of the command and its value.
Quote Originally Posted by Fabolous View Post
Here's a public console calling method.

Code:
void __cdecl CPush(const char *Command, char *Value)
{
char *PCommand = new char[256]; //Define PCommand
sprintf(PCommand, "%s %s", Command, Value); //Define PCommand as "Command(Space)Value"
DWORD LTC = 0x00485E10;// //Define the LTC (Gordon's LTC)
void *Control = (void*)LTC; //Define Control method as the LTC
__asm //Start of ASM code
{
push PCommand;
call Control;
add esp, 4;
}
}
To use , here is an example :
Code:
CPush("ActivationDistance","99999");
Notice how theres another " after the name of the command and its value.
Thanks, will try, if works will rep+thanks if not, will thanks xD
Quote Originally Posted by yaserifti1 View Post
Thanks, will try, if works will rep+thanks if not, will thanks xD
Lol okay , just here to help. If you need help , write the problem here
Quote Originally Posted by Fabolous View Post


Lol okay , just here to help. If you need help , write the problem here
New problem now

Code:
c:\users\administrator\documents\visual studio 2010\projects\cahacks1\cahacks1\base.cpp(15): error C3861: 'sprintf': identifier not found
Go scroll all the way to the top and add this ->
Code:
#include <stdio.h>
Quote Originally Posted by Fabolous View Post
Go scroll all the way to the top and add this ->
Code:
#include <stdio.h>
Thanks, just wanted to know the #include lol I didnt wanna have to go through and check. Thanks! Testing atm.
Quote Originally Posted by yaserifti1 View Post
Thanks, just wanted to know the #include lol I didnt wanna have to go through and check. Thanks! Testing atm.
No problem , post results here bro.
Quote Originally Posted by Fabolous View Post


No problem , post results here bro.
Ok btw check your friend requests
Also, give me bout 10 minutes, my combat arms files are tainted with a new rez mod I made while waiting for you to reply
I'm bout to use the patcher in the rez modding section, and then test it. Will post results!
Quote Originally Posted by yaserifti1 View Post
Ok btw check your friend requests
Also, give me bout 10 minutes, my combat arms files are tainted with a new rez mod I made while waiting for you to reply
I'm bout to use the patcher in the rez modding section, and then test it. Will post results!
Take your time. Post results here so i know if you need help or not :P
ugh, didn't work. It doesn't disconnect me or give me errors, it just doesn't work when I press the correct hot key.
Quote Originally Posted by yaserifti1 View Post
ugh, didn't work. It doesn't disconnect me or give me errors, it just doesn't work when I press the correct hot key.
It should work.Are you sure you changed the way you call the console? CPush("hack","value"); ?
Console command hacks must called in Present.
Quote Originally Posted by Fabolous View Post


It should work.Are you sure you changed the way you call the console? CPush("hack","value"); ?
Yep, look -
Code:
#include <windows.h>
#include <stdio.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 CPush(const char *Command, char *Value)
{
char *PCommand = new char[256]; 
sprintf(PCommand, "%s %s", Command, Value); 
DWORD LTC = 0x00485E10;
void *Control = (void*)LTC; 
__asm 
{
push PCommand;
call Control;
add esp, 4;
}
}
void main() {
while(true) {

if(GetAsyncKeyState(VK_NUMPAD1)&1){
chams =! chams;
}
if(chams)
{
CPush("SkelModelStencil", "1");
} else {
CPush("SkelModelStencil", "0");
}
if(GetAsyncKeyState(VK_NUMPAD2)&1){
cross =! cross;
}
if(cross) {
CPush("CrossHairR", "255");
} else {
CPush("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;
}
Posts 115 of 40 · Page 1 of 3

Post a Reply

Tags for this Thread

None

Need help?