Results 1 to 10 of 10
  1. #1
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely

    [HELP] Will This Work?

    Code:
    // CA HACK.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #include <windows.h>
    #include <shellapi.h>
    #pragma comment(lib,"shell32.lib")
    
    void __cdecl PushToConsole( const char* szCommand )
    {
    	DWORD L***ient = ( DWORD* )( 0x3776FCC8 );
    	void* CONoff = ( void* )*( DWORD* )( L***ient + 0x208 );
     
    	__asm
    	{
    		push szCommand;
    		call CONoff;
    		add esp, 4;
    	}
    }
    bool IsGameReadyForHook()
    {
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    		void MemCopy(void* Dest, const void* Src, int Len)
    {
        DWORD OldProtect;
        DWORD OldProtect2;
        VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
        memcpy(Dest, Src, Len);
        VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
        FlushInstructionCache(GetCurrentProcess(), Dest, Len);
    }
    void main()
    {
    
    
    if(GetAsyncKeyState(VK_NUMPAD0 )<0){         
                if(spread){ 
                    PushToConsole("PerturbRotationEffect 3.000000"); 
                    PushToConsole("PerturbIncreaseSpeed 3.000000"); 
                    PushToConsole("PerturbDecreaseSpeed 9.000000"); 
                    PushToConsole("PerturbWalkPercent 0.500000"); 
                    spread = false; 
                } else { 
                    PushToConsole("PerturbRotationEffect  0.000000");  
                    PushToConsole("PerturbIncreaseSpeed 0.000000");  
                    PushToConsole("PerturbWalkPercent 0.000000");  
                    PushToConsole("PerturbFiringIncreaseSpeed 0.000000"); 
                    spread = true; 
                } 
            }  
    // No Spread Hotkey: NUMPAD 0
    
    if(GetAsyncKeyState(VK_NUMPAD1)<0){ 
                if(boxes){ 
                    PushToConsole("ModelDebug_DrawBoxes 0"); 
                    PushToConsole("SkelModelStencil 0"); 
                    boxes = false; 
                } else { 
                    PushToConsole("ModelDebug_DrawBoxes 1"); 
                    PushToConsole("SkelModelStencil 1"); 
                    boxes = true; 
                } 
            }  
    // Boxes/Chams Hotkey: NUMPAD 1
    
    
    if(GetAsyncKeyState(VK_NUMPAD2)<0){
    			if(fog){
    				PushToConsole("FogEnable 1");
    				fog = false;
    			} else {
    				PushToConsole("FogEnable 0");
    				fog = true;
    			}
    		}
    
    //NO FOG Hotkey: NUMPAD 2
    
    if( GetAsyncKeyState( VK_SHIFT ) < 0 ) 
    { 
                this->PushToConsole("BaseMoveAccel 4000.000000"); 
                this->PushToConsole("StartAccel 4000.000000"); 
                this->PushToConsole("MaxAccel 4000.000000"); 
                this->PushToConsole("AccelInc 4000.000000"); 
                this->PushToConsole("WalkVel 4000.000000"); 
                this->PushToConsole("FRunVel 4000.000000"); 
                this->PushToConsole("BRunVel 4000.000000"); 
                this->PushToConsole("SRunVel 4000.000000"); 
                 
                 
                 
                                     
    }else{ 
    
                this->PushToConsole("BaseMoveAccel 3000.000000"); 
                this->PushToConsole("StartAccel 500.000000"); 
                this->PushToConsole("MaxAccel 3000.000000"); 
                this->PushToConsole("AccelInc 6000.000000"); 
                this->PushToConsole("WalkVel 70.000000"); 
                this->PushToConsole("FRunVel 285.000000"); 
                this->PushToConsole("BRunVel 285.000000"); 
                this->PushToConsole("SRunVel 285.000000"); 
                         
    }
    
    //Speed Hack Hotkey:SHIFT
    i dont know if it will not
    what do i need to do so?
    thanks in ADV.

  2. #2
    Truly Free's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Merica
    Posts
    1,041
    Reputation
    97
    Thanks
    138
    My Mood
    Amazed
    I do not see any errors. And i am to Lazy to test right now Just being honest. But If you are going to make a hack Heads up... No spread is pretty much useless with out no recoil.. Just try and find the no recoil addresses.

  3. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    no spread is not useless..even without no recoil..

  4. #4
    king4940's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    with your gf
    Posts
    335
    Reputation
    24
    Thanks
    187
    actually there are some problems with it

    you need to define boxes and the other features that you added and you can do that by doing this
    bool boxes = false;
    and same goes for the rest of the features that you will add
    if i'm worng anyone please do correct me.
    Last edited by king4940; 06-03-2010 at 10:41 AM.



    RESPECT LIST:

    BombSway
    Marko
    Drake
    Deadline

  5. The Following User Says Thank You to king4940 For This Useful Post:

    jono12333 (06-04-2010)

  6. #5
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    There is also no hook.
    You need to hook the DLL to the process by doing this:

    [php]
    BOOL APIENTRY DllMain( HMODULE hModule,
    DWORD ul_reason_for_call,
    LPVOID lpReserved
    )
    {
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);//main being your hack thread
    break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
    break;
    }
    return TRUE;
    }
    [/php]

    And as the other guy said.
    You need to define the hack names for them to work.
    Like this:

    [php]
    //visuals
    bool boxes = false;
    bool fullbright = false;
    bool fog = false;
    //Removals
    bool spread = false;
    bool reach = false;
    bool sway = false;
    //Other
    bool speed = false;
    bool superjump = false;
    bool vJump = false;
    [/php]

    And just ran a quick eye over it and saw you had no sleep timer. That will cause tremendous lag.
    You also havent stated whats going to happen when you hook d3d8 ect.
    So you will need to put this in your main.

    [php]
    void main()
    {
    while (!IsGameReadyForHook()){
    Sleep(30);
    }

    while(true){

    //Start commands here
    }
    }
    [/php]

    Thhats all i can really see atm.

  7. #6
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    combat arms is based off d3d9. anything coded in d3d8 wont work

  8. #7
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    its fine know i have changed from hotkeys to a menu


    /CLOSE

    plox
    Last edited by ^...,^; 06-04-2010 at 02:27 PM.

  9. #8
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    You still need all that stuff for a menu anyway

  10. #9
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    useing "BIG G" s base lol

  11. #10
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    /Close request by OP.
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. Will this work?
    By -:TKK:-WaSsUp in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 6
    Last Post: 09-28-2010, 11:06 PM
  2. Will this Work?
    By xxxPROFINITYxxx in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 14
    Last Post: 08-16-2010, 05:13 AM
  3. Will this work?
    By toonshorty in forum Call of Duty Modern Warfare 2 Help
    Replies: 8
    Last Post: 04-12-2010, 08:11 PM
  4. [REQUEST] Can you change the Damage of guns? Will this work?
    By W$fSEDfw435sef in forum Combat Arms Mod Discussion
    Replies: 8
    Last Post: 01-02-2010, 10:26 PM
  5. will this work?
    By mpentlan01 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 06-08-2009, 12:32 PM