Help!!! (Hack In-Game)

Posts 1–15 of 30 · Page 1 of 2
Help!!! (Hack In-Game)
Hello I understand how to do hotkeys to my hack and only with hotkeys that hack detected after 30-40 sec ingame D: /yea Help Me PLSS /yea

Ty, o-o .
ok, quick question. do you understand how the while function works? be honest man, im not going to bash.
Dude don't copy from what I told you!
Dude don't copy from what I told you!

Quote Originally Posted by BloodSkin View Post
ok, quick question. do you understand how the while function works? be honest man, im not going to bash.
Quote Originally Posted by mastermods View Post
Dude don't copy from what I told you!
huh? you didnt tell me anything lol (that was accurate anyways).

Quote Originally Posted by o-o View Post
Only With The Main And Return That Didn't Failed
HELP ME AND I'M NEW CODER SRY IF I WAS IDIOT
i do not understand what you are saying here. did removing those 2 lines fix your problem or not?
To wait 30 or 40 seconds, you would put in sleep(30000); or sleep(40000); in your main function before the while function. You can find tutorials on hotkeys everywhere, so I won't explain it. Use the search function.
In my code that's Sleep(100); 0-0

what i need to change??
Quote Originally Posted by o-o View Post
In my code that's Sleep(100); 0-0

what i need to change??
read what i said dude. it looks like you just copied and pasted, and forgot to include the very last line of your c/p.

go read like the first 2 or 3 chapters of a c++ book at least. it shouldnt take but a few hours, and its most rewarding.
Lolz That FUCKING NOT COPY AND PASTE !!! AND THAT IS THE MY CODE 0-0



Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
/* CREDITS TO CN */
push Command;
call Send; 
add esp, -3-1+2+6;
}
}   
void main()
{
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD1))
{
PushToConsole("SkelModelStencil 0");
}
else{
PushToConsole("SkelModelStencil 1");
}
if(GetAsyncKeyState(VK_INSERT))
{
PushToConsole("ShowFps 0");
}
else{
PushToConsole("ShowFps 1");
}
if(GetAsyncKeyState(VK_DELETE))
{
PushToConsole("FogEnable 0");
}
else{
PushToConsole("FogEnable 1");
}
}}
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 o-o View Post
Lolz That FUCKING NOT COPY AND PASTE !!! AND THAT IS THE MY CODE 0-0



Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
/* CREDITS TO CN */
push Command;
call Send; 
add esp, -3-1+2+6;
}
}   
void main()
{
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD1))
{
PushToConsole("SkelModelStencil 0");
}
else{
PushToConsole("SkelModelStencil 1");
}
if(GetAsyncKeyState(VK_INSERT))
{
PushToConsole("ShowFps 0");
}
else{
PushToConsole("ShowFps 1");
}
if(GetAsyncKeyState(VK_DELETE))
{
PushToConsole("FogEnable 0");
}
else{
PushToConsole("FogEnable 1");
}
}}
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;
}
that SHOULD fix the problem that i saw. im no pro though, so let me know if you get any more errors.

EDIT: my bad man, thought i was posting a reply to someone else in a different thread. how the fawk did i get back here???
After I did build soultion that do without errors but after 20-40 secs when i'm playing or not that close the ca 0-0 HELP ME WHAT I DIDN'T GOOD !!
Quote Originally Posted by o-o View Post
After I did build soultion that do without errors but after 20-40 secs when i'm playing or not that close the ca 0-0 HELP ME WHAT I DIDN'T GOOD !!
main();
return 0;

i dont understand why you have that in there. return isnt needed because you are using while(true), and i have no clue why you are trying to run main within itsself.

you may want to look at these 2 tid bits. i may be reading what you have wrong because theres no indents, but im pretty sure that may be what is causing your troubles.
Um if((blablablah) < 0)
Lol. Ok, pack your hack with UPX, inject it into CA, and it should work no problems.
Your making this guy work harder lol.
@o-o,
You used CoderNever Hotkey Hack tut right?
If you did, remember to give credits, and also, instead of doing all this shit, just try packing your hacking instead, and then injecting. it might work
Only With The Main And Return That Didn't Failed
HELP ME AND I'M NEW CODER SRY IF I WAS IDIOT
Posts 1–15 of 30 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us