Smile*Future*CA hacker needing help

Posts 1630 of 34 · Page 2 of 3
Quote Originally Posted by dugindog View Post
you copied that from me
WHAT!? i never copied something from you
This is something i got from Schim for awile ago.
Yes,I know this code is really messed up,but so far I have narrowed it down to 7 errors.
Anyone possibly know where I am going wrong with this code?


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
{
Command;
call Send;
add esp, -3-1+2+6;
} 
4;
}
}	
void main()
{
                bool recoil = false, walls = false, fog = false, sway = false, blood = false;

while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){     
			walls = !walls;  
			if(walls){ 
				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
			} else { 
				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
				
			}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
recoil = !recoil;
if(recoil){
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" );
} else {
Put Normal Values for Recoil in PTC format HERE! (idk the original Values
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
fog = !fog;
if(fog){
PushToConsole("FogEnable 0");
} else {
PushToConsole("FogEnable 1");
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
sway = !sway;
if(sway){
PushToConsole("WeaponSway 0.000000" )
} else {
NORMAL WeaponSway In PTC Format Goes here
}
Sleep(150)
}
PushToConsole("WhiteBlood 1" );Numpad 4
{
}

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 Joemommahitme View Post
Yes,I know this code is really messed up,but so far I have narrowed it down to 7 errors.
Anyone possibly know where I am going wrong with this code?


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
{
Command;
call Send;
add esp, -3-1+2+6;
} 
4;
}
}	
void main()
{
                bool recoil = false, walls = false, fog = false, sway = false, blood = false;

while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){     
			walls = !walls;  
			if(walls){ 
				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
			} else { 
				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
				
			}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
recoil = !recoil;
if(recoil){
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" );
} else {
Put Normal Values for Recoil in PTC format HERE! (idk the original Values
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
fog = !fog;
if(fog){
PushToConsole("FogEnable 0");
} else {
PushToConsole("FogEnable 1");
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
sway = !sway;
if(sway){
PushToConsole("WeaponSway 0.000000" )
} else {
NORMAL WeaponSway In PTC Format Goes here
}
Sleep(150)
}
PushToConsole("WhiteBlood 1" );Numpad 4
{
}

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;
}
There are lots of things wrong with that code.
Actually look at it and tell me what you find.
Quote Originally Posted by Crash View Post
There are lots of things wrong with that code.
Actually look at it and tell me what you find.
you can set a bool up like that? o.O
to many brackets to start off with,dunno wich to delete and what not to delete.

Edit:never mind,im through with this.I try to start a new career,and obviously no1 gives a shit about new people.
Quote Originally Posted by Joemommahitme View Post
to many brackets to start off with,dunno wich to delete and what not to delete.

Edit:never mind,im through with this.I try to start a new career,and obviously no1 gives a shit about new people.
dont give up that easily if you really want to learn, go look throught the hack source code section or just start CN's tutorial again.
Quote Originally Posted by markoj View Post
dont give up that easily if you really want to learn, go look throught the hack source code section or just start CN's tutorial again.
or if you REALLY want to learn go watch the c++ videos in the c++ section
I have gone over his tutorial 5x,and I have books upon books,and I just simply cant do it.No inspiration,and no willingness to do so now.
Quote Originally Posted by Joemommahitme View Post
I have gone over his tutorial 5x,and I have books upon books,and I just simply cant do it.No inspiration,and no willingness to do so now.
Did you honestly even read the code at all.
Didn't expain how to add more in his tutorial.Also the brackets just confuse me more as it is.
Quote Originally Posted by Joemommahitme View Post
Didn't expain how to add more in his tutorial.Also the brackets just confuse me more as it is.
Learn the language and you'll understand it.
It's like trying to write a book in Chinese when you don't know any words.
Whats the point,I mean I dont have the things required to find the games code after every patch,and all the noobs making small hacks are glorified/adored for making just NX chams,and no spread.Me knowing my luck I wont be.....As I said,im normally turned down,and it always will be like that -_- sooooo whats the point?
Quote Originally Posted by Joemommahitme View Post
Whats the point,I mean I dont have the things required to find the games code after every patch,and all the noobs making small hacks are glorified/adored for making just NX chams,and no spread.Me knowing my luck I wont be.....As I said,im normally turned down,and it always will be like that -_- sooooo whats the point?
Dont give up and you'll learn.



And btw Glory from choobs for C+Ped code is not actual accomplishment.
Quote Originally Posted by whatup777 View Post
Dont give up and you'll learn.



And btw Glory from choobs for C+Ped code is not actual accomplishment.

Besides that I have college here pretty soon,and I wont have enough time to be coding and all,maybe in like 7years from now I can.I just dont have the patience to do so,really fed up with trying.
Delete all of your code and start from a base. The code you have would take longer to fix than anything else, and you obviously need to learn at least the basics of C++.
Posts 1630 of 34 · Page 2 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?