Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Moochie's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Mellow
    Code:
    #include <windows.h>
    bool fps = false;
    void __cdecl PassCMD( const char* cCommand)
    {
    	void* address = ( void* ) 0x485FA0;
    
    	__asm
    	{
    		Push cCommand
    		call address
    		add esp, 0x4
    	}
    }
    
    void main()
    {
    	if ( GetAsyncKeyState( VK_F10 ) &1) // Yes this will activate it, however if Combat Arms changes the value back to 0 it will go off which would make you needing to press f10 everytime it goes off
    	{
    		PassCMD("SkelModelStencil 1");
    	}
    
    	if ( GetAsyncKeyState( VK_F11 )&1)
    	{
    		
    		fps = true;
    	}else{
    		fps = false;
    	}
    
    	if(fps) {
    	PassCMD( "ShowFps 1" );
    	}else{
    	PassCMD( "ShowFps 0" );
    	}
    }
    DWORD WINAPI dwHackThread( LPVOID )
    {
    while(GetModuleHandleA("CShell.dll") != NULL) { // What this does is basically keeps going as long as it equals true and in C++ 1 is true all the time
    main();
    }
    Sleep(100)
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls( hDll );
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread( NULL, NULL, dwHackThread, NULL, NULL, NULL ); // The Start of the dll calls Your HackThread which calls your main void	
    }
    return TRUE;
    }
    i made it wait untill combat arms loads Cshell which should be after hackshield runs, I also added a sleep function just for it handles a little bit better. Now that I'm using "GetModuleHandleA" you might need to swich your charset to multibyte


    This is my public hook! It might be released soon :O

  2. #17
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    still won't work.. you need to call the function from within one of the games functions.

  3. The Following User Says Thank You to swatfx For This Useful Post:

    Moochie (08-04-2011)

  4. #18
    Moochie's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Mellow
    Which means you need to call it from Present/Endscene/Dip/Reset if you are confused of what that meant :S. Or you can bypass the Engine checking that it is not being called from their functions, but it would be way harder finding that address as apose to just coding a hook.
    Last edited by Moochie; 08-04-2011 at 01:06 PM.


    This is my public hook! It might be released soon :O

Page 2 of 2 FirstFirst 12

Similar Threads

  1. whats wrong with this?
    By whitten in forum C++/C Programming
    Replies: 3
    Last Post: 08-21-2009, 08:41 PM
  2. Whats wrong with this?
    By superHackz in forum Visual Basic Programming
    Replies: 1
    Last Post: 05-31-2008, 12:35 PM
  3. Whats wrong with this?
    By superHackz in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-26-2008, 05:03 AM
  4. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 07:57 AM
  5. whats wrong with this...
    By NetNavi in forum WarRock - International Hacks
    Replies: 6
    Last Post: 09-03-2007, 02:19 AM