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
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
Thanks Cosmos
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 https://mpgh.net/"); CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this. } return TRUE; }
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 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 :/
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 https://mpgh.net/"); CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this. } return TRUE; }
Last edited by conndrst; 09-01-2010 at 01:35 AM.
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.