ok, quick question. do you understand how the while function works? be honest man, im not going to bash.
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.
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??
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; }
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 !!
Lol. Ok, pack your hack with UPX, inject it into CA, and it should work no problems.
Don't Click This Link! It's a free V.i.P. Did You Click?
----------------------------------------------
(\_/) Status:
(0_0) Awesome Project [63%]
('')('')
----------------------------------------------
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.
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
Don't Click This Link! It's a free V.i.P. Did You Click?
----------------------------------------------
(\_/) Status:
(0_0) Awesome Project [63%]
('')('')
----------------------------------------------
Only With The Main And Return That Didn't Failed
HELP ME AND I'M NEW CODER SRY IF I WAS IDIOT