Help me please

Posts 1–8 of 8 · Page 1 of 1
Help me please
Guyz i had no recoil working before but not working now whats wrong with my no recoil in my code?
Code:
#include "stdafx.h"
#define LTClient_Adress 0x377CC790
#include <windows.h>
//lol u put sleep on 1 and speed on other//w
const int iRenderSpeed = 50; 

bool Memoria( void * pDest, char * szPatch, size_t sSize )//NOP Function
{
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
        return FALSE;

    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
}  

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* )( LTClient_Adress );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}   
void main()
{		
		while(true)
	{
		PushToConsole("ShowFps 1");
		PushToConsole("SkelModelStencil 1");
		PushToConsole("DrawParticles 0");
		PushToConsole("PerturbRotationEffect  0.000000"); 
		PushToConsole("PerturbIncreaseSpeed 0.000000"); 
		PushToConsole("PerturbWalkPercent 0.000000"); 
		PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
		PushToConsole("PerturbRecoil 0.000000");
		PushToConsole("FireMovePerturb 0.000000");
		PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
		PushToConsole("ZoomedFireMovePerturb 0.000000");
		PushToConsole("ZoomedFireDuckPerturb 0.000000");



			char* pushCmd;
           pushCmd=("PlayerGravity -800");
            PushToConsole( pushCmd );
            if( GetAsyncKeyState( 30 ) < 0 ){
            pushCmd=("PlayerGravity  800");
            PushToConsole( pushCmd );
         }else{
            pushCmd=("PlayerGravity  -800");
            PushToConsole( pushCmd );
			}
		} 
			memcpy((LPVOID)0x3741B720, "\x90\x90\x90", 3);
			memcpy((LPVOID)0x3741B734, "\x90\x90\x90", 3);
			memcpy((LPVOID)0x3741B737, "\x90\x90\x90\x90\x90\x90", 3);
			memcpy((LPVOID)0x3741B740, "\x90\x90\x90", 3);
		


		Sleep(iRenderSpeed); 

}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(25);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
	if( MessageBox(0, TEXT("Inject Hack Now?"), TEXT("wassup40"), MB_YESNO)==IDYES){

CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}

}
what errors ect?
LOL let me guess your hack isnt even starting right? on loginscreen you get a dc.

add esp, 4; detected change it!

for me it was the same i changed it and all is working again...

maybe there are more mistakes in your code but i don't have enough time now to get closer to it.
Quote Originally Posted by doofbla View Post
LOL let me guess your hack isnt even starting right? on loginscreen you get a dc.

add esp, 4; detected change it!

for me it was the same i changed it and all is working again...

maybe there are more mistakes in your code but i don't have enough time now to get closer to it.
my esp 4 still works for 2 months
Quote Originally Posted by HaX4LiFe! View Post
my esp 4 still works for 2 months
hmm i got add esp,(2+2); and that was detected i learned abit assembler and found a totaly different method to add esp maybe it will work longer if the whole world is using add esp, 4 ;-) But ok if its working for you

*THUMBS UP*

btw. wassup your source is just copied from others ---go and code by yourself man
try this

#include <windows.h>

#define LtClient 0x377CC790 //LTClient Address
#define NR1 0x3741B720 //No Recoil Addresses
#define NR2 0x3741B737
#define NR3 0x3741B734
#define NR4 0x3741B740
int Src = 8000000;
const int* pSrc = &Src;
bool NoRecoil( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
NoRecoil((LPVOID)NR1, "\xD8\x66\x54", 3);
NoRecoil((LPVOID)NR2, "\xD9\x5E\x54", 3);
NoRecoil((LPVOID)NR3, "\xD9\x5E\x54\xD9\x46\x48", 6);
NoRecoil((LPVOID)NR4, "\xD9\x5E\x48", 3);
}

and pls thank me if i helped
Quote Originally Posted by xxthehulkxx View Post
try this

#include <windows.h>

#define LtClient 0x377CC790 //LTClient Address
#define NR1 0x3741B720 //No Recoil Addresses
#define NR2 0x3741B737
#define NR3 0x3741B734
#define NR4 0x3741B740
int Src = 8000000;
const int* pSrc = &Src;
bool NoRecoil( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
NoRecoil((LPVOID)NR1, "\xD8\x66\x54", 3);
NoRecoil((LPVOID)NR2, "\xD9\x5E\x54", 3);
NoRecoil((LPVOID)NR3, "\xD9\x5E\x54\xD9\x46\x48", 6);
NoRecoil((LPVOID)NR4, "\xD9\x5E\x48", 3);
}

and pls thank me if i helped
Okay That's Okay code OF course work but it's a same Code but here in this Code add Off for no Recoil

And The Problem You Are Close the While(true) Before the NoRecoil...
So you have To Remove One From this (}) they has been added Before the Norecoil and Put it After the Norecoil
Look like
[php]
void main()
{
while(true)
{
PushToConsole("ShowFps 1");
PushToConsole("SkelModelStencil 1");
PushToConsole("DrawParticles 0");
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("PerturbIncreaseSpeed 0.000000");
PushToConsole("PerturbWalkPercent 0.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
PushToConsole("PerturbRecoil 0.000000");
PushToConsole("FireMovePerturb 0.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
PushToConsole("ZoomedFireMovePerturb 0.000000");
PushToConsole("ZoomedFireDuckPerturb 0.000000");



char* pushCmd;
pushCmd=("PlayerGravity -800");
PushToConsole( pushCmd );
if( GetAsyncKeyState( 30 ) < 0 ){
pushCmd=("PlayerGravity 800");
PushToConsole( pushCmd );
}else{
pushCmd=("PlayerGravity -800");
PushToConsole( pushCmd );
}

memcpy((LPVOID)0x3741B720, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B734, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B737, "\x90\x90\x90\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B740, "\x90\x90\x90", 3);

}

Sleep(iRenderSpeed);

}

[/php]
i think now it's Okay Code
Press thank if i helped
nope everything works fine exept no recoil i get no errors
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?