Arrow[Release]CoderNever's Base Updated

Posts 3145 of 46 · Page 3 of 4
i cant acces the link eather
The Servers are Again down...And dude...Delete it from the attachments...All noobs will say that they can code...Let them figure out themself
Ok if i did my clueless messing around right then should this work? if not then please correct me.
Code:
#include <windows.h>
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 ) // This is the beginning of the PTC Method
{
	DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
	void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
	__asm
	{
		push szCommand;
		call CONoff;
		add esp, 4;
	}
}
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	bool fog = false;
	bool fps = false;
	while(true)
	{

		// This is a example of a auto on hack.
		PushToConsole("SkelModelStencil 1");
		// This is a example of a hotkey hack.
		if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
			if(chams == true){ // If the bool chams is true
				PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
				chams = false; // Make sure bool chams is false.
			} else { // Now where saying if bool chams is equal to false turn on.
				PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
				chams = true; // Make sure bool chams is true.
			}
		}

	}
	{ 
        if(GetAsyncKeyState(VK_NUMPAD2)<0){ 
            if(fog == true){ 
                PushToConsole("FogEnable 0"); 
                fog = false; 
            } else { 
            PushToConsole("FogEnable 1"); 
                fog = true; 
            } 
        } 

    } 
	{
		if(GetAsyncKeyState(VK_NUMPAD3)<0){
			if(fps == true){
				PushToConsole("ShowFps 0");
				fps = false;
			}else{
				PushToConsole("ShowFps 1");
				fps = true;
			}
		}
	}
	// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
	Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReadyForHook() )
		Sleep(100);
	main(); // Loads the void main.
	return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		// If you want to show a message box or open a website when injected put it here.
		// For example:
		system("start http://mpgh.net/");
		CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
	}
	return TRUE;
}
Quote Originally Posted by conndrst View Post
Ok if i did my clueless messing around right then should this work? if not then please correct me.
Code:
#include <windows.h>
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 ) // This is the beginning of the PTC Method
{
	DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
	void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
	__asm
	{
		push szCommand;
		call CONoff;
		add esp, 4;
	}
}
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	bool fog = false;
	bool fps = false;
	while(true)
	{

		// This is a example of a auto on hack.
		PushToConsole("SkelModelStencil 1");
		// This is a example of a hotkey hack.
		if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
			if(chams == true){ // If the bool chams is true
				PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
				chams = false; // Make sure bool chams is false.
			} else { // Now where saying if bool chams is equal to false turn on.
				PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
				chams = true; // Make sure bool chams is true.
			}
		}

	}
	{ 
        if(GetAsyncKeyState(VK_NUMPAD2)<0){ 
            if(fog == true){ 
                PushToConsole("FogEnable 0"); 
                fog = false; 
            } else { 
            PushToConsole("FogEnable 1"); 
                fog = true; 
            } 
        } 

    } 
	{
		if(GetAsyncKeyState(VK_NUMPAD3)<0){
			if(fps == true){
				PushToConsole("ShowFps 0");
				fps = false;
			}else{
				PushToConsole("ShowFps 1");
				fps = true;
			}
		}
	}
	// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
	Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReadyForHook() )
		Sleep(100);
	main(); // Loads the void main.
	return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		// If you want to show a message box or open a website when injected put it here.
		// For example:
		system("start http://mpgh.net/");
		CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
	}
	return TRUE;
}
It looks like you're closing your while(true) statement after your first KeyState. Don't do that
Quote Originally Posted by CodeDemon View Post
It looks like you're closing your while(true) statement after your first KeyState. Don't do that
dam now i have no clue what to do
Quote Originally Posted by conndrst View Post
dam now i have no clue what to do
Dont close your while(true) statement after your first KeyState
Quote Originally Posted by markoj View Post
Dont close your while(true) statement after your first KeyState
if i un-close it then it wont build it comes up with this

c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(28) : error C2059: syntax error : 'constant'
c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(29) : error C2143: syntax error : missing ';' before '{'

i am /noob i know
Quote Originally Posted by conndrst View Post
if i un-close it then it wont build it comes up with this

c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(28) : error C2059: syntax error : 'constant'
c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(29) : error C2143: syntax error : missing ';' before '{'

i am /noob i know
Close it after you put in all of your hacks, so you open, put your stuff in, t hen close it
Quote Originally Posted by conndrst View Post
if i un-close it then it wont build it comes up with this

c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(28) : error C2059: syntax error : 'constant'
c:\documents and settings\user\my documents\visual studio 2008\projects\cnsbase\cnsbase\base.cpp(29) : error C2143: syntax error : missing ';' before '{'

i am /noob i know
Well if you don't want to be a noob.. You could learn C++..
Im just saying.

BTW, how come the base is uploaded? Couldn't you just paste it into your post?
I still disapprove of this thread
Quote Originally Posted by _-Blazin-_ View Post
Well if you don't want to be a noob.. You could learn C++..
Im just saying.

BTW, how come the base is uploaded? Couldn't you just paste it into your post?
I still disapprove of this thread
here is the orig base code (it gets this error in c++ 2010 express... mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\CNSBase.dll.embed.manifest". The parameter is incorrect.)
but it seems to work in 2008 express.

and i dont really mind being a noob but i wouldnt mind being pro either XD


Code:
#include <windows.h>
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 ) // This is the beginning of the PTC Method
{
	DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
	void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
	__asm
	{
		push szCommand;
		call CONoff;
		add esp, 4;
	}
}
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	while(true)
	{

		// This is a example of a auto on hack.
		PushToConsole("SkelModelStencil 1");
		// This is a example of a hotkey hack.
		if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
			if(chams == true){ // If the bool chams is true
				PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
				chams = false; // Make sure bool chams is false.
			} else { // Now where saying if bool chams is equal to false turn on.
				PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
				chams = true; // Make sure bool chams is true.
			}
		}

	}
	// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
	Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReadyForHook() )
		Sleep(100);
	main(); // Loads the void main.
	return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		// If you want to show a message box or open a website when injected put it here.
		// For example:
		system("start http://mpgh.net/");
		CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
	}
	return TRUE;
}
Close it after all your keystates. Besides that you have ALOT of incorrect brackets. I'm still wondering how you got it to compile lol
I can't download it for some reason :/
Quote Originally Posted by jeffhardy745 View Post
i cant download this
follow these steps
just name the project CSNBase not CSNBase(orig)
and when adding the cpp file name it Base(it will add .cpp by itself)










And this is the source code from the download so it should work and if not you did somthing wrong
and im just putting this here for the ppl that cant download it(for unknown reasons)
Sad face
Download doesn't work.
Posts 3145 of 46 · Page 3 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?