Thread: code

Results 1 to 11 of 11
  1. #1
    dugindog's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    jasper mn
    Posts
    189
    Reputation
    7
    Thanks
    7
    My Mood
    Twisted

    code

    can you guys help m reduce the lag and then set this to hotkeys visual studios wont let me for some reason


    #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(char* sVal)
    {
    DWORD zAddress = 0x007D9200;
    void* szConsole = (void*)*(DWORD*)(zAddress);
    _asm
    {
    push sVal
    call szConsole
    add esp, 4
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("FogEnable 0" );
    PushToConsole("no health peaces 1" );
    PushToConsole("ActivationDistance 999999" );
    PushToConsole("BaseMoveAccel 1800.000000");
    PushToConsole("StartAccel 1800.000000");
    PushToConsole("MaxAccel 1800.000000");
    PushToConsole("AccelInc 1800.000000");
    PushToConsole("WalkVel 1800.000000");
    PushToConsole("FRunVel 1800.000000");
    PushToConsole("BRunVel 1800.000000");
    PushToConsole("SRunVel 1800.000000");
    PushToConsole("JumpVel 1800.000000");
    PushToConsole("DuckVel 1800.000000");

    }
    }
    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;
    }


    credits
    various mpgh users
    Last edited by dugindog; 07-22-2010 at 12:51 PM.

  2. #2
    killerld's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    345
    Reputation
    11
    Thanks
    192
    My Mood
    Twisted
    Hotkey just put them before :

    PushToConsole("FogEnable 0" );

    And change the value to put it off or on :P
    You can use the same Hotkey to on / off

    Now let's search a bit !
    We will not do the job for you !
    If you know some base, you will be able to do the rest xD


    Sorry for my bad English ! I'm French Canadian !

    - When you use my hack, Please Thank Me

    Release some Hacks []
    Able to code in PhP / Mysql []
    Able to code in VB []
    Able to code in C# []
    Able to do VB Injector []
    Release an Injector []
    Active Member in the Community []
    Member who help small Hacker []

  3. #3
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused

  4. #4
    MugNuf's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    792
    Reputation
    9
    Thanks
    160
    My Mood
    Goofy
    //Credits to:
    //CoderNever - His tutorial
    //MugNuf - Adding like, 7 sleep functions
    //dugindog - C+Ping CN's tutorial, and his PTC without credits
    #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(char* sVal)
    {
    DWORD zAddress = 0x007D9200;
    void* szConsole = (void*)*(DWORD*)(zAddress);
    _asm
    {
    push sVal
    call szConsole
    add esp, 4
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("FogEnable 0" );
    Sleep(50);
    PushToConsole("no health peaces 1" );
    Sleep(50);
    PushToConsole("ActivationDistance 999999" );
    Sleep(50);
    PushToConsole("BaseMoveAccel 1800.000000");
    Sleep(50);
    PushToConsole("StartAccel 1800.000000");
    Sleep(50);
    PushToConsole("MaxAccel 1800.000000");
    Sleep(50);
    PushToConsole("AccelInc 1800.000000");
    Sleep(50);
    PushToConsole("WalkVel 1800.000000");
    Sleep(50);
    PushToConsole("FRunVel 1800.000000");
    Sleep(50);
    PushToConsole("BRunVel 1800.000000");
    Sleep(50);
    PushToConsole("SRunVel 1800.000000");
    Sleep(50);
    PushToConsole("JumpVel 1800.000000");
    Sleep(50);
    PushToConsole("DuckVel 1800.000000");
    Sleep(50);
    }
    }
    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;
    }

    You can do the rest yourself, adding hotkeys isn't hard.
    Last edited by MugNuf; 07-22-2010 at 12:13 PM.

  5. #5
    dugindog's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    jasper mn
    Posts
    189
    Reputation
    7
    Thanks
    7
    My Mood
    Twisted
    i dont know how thats the thing cn you help me??

  6. #6
    killerld's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    345
    Reputation
    11
    Thanks
    192
    My Mood
    Twisted
    Quote Originally Posted by MugNuf View Post
    //Credits to:
    //CoderNever - His tutorial
    //MugNuf - Adding like, 7 sleep functions
    //dugindog - C+Ping CN's tutorial, and his PTC without credits
    #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(char* sVal)
    {
    DWORD zAddress = 0x007D9200;
    void* szConsole = (void*)*(DWORD*)(zAddress);
    _asm
    {
    push sVal
    call szConsole
    add esp, 4
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("FogEnable 0" );
    Sleep(50);
    PushToConsole("no health peaces 1" );
    Sleep(50);
    PushToConsole("ActivationDistance 999999" );
    Sleep(50);
    PushToConsole("BaseMoveAccel 1800.000000");
    Sleep(50);
    PushToConsole("StartAccel 1800.000000");
    Sleep(50);
    PushToConsole("MaxAccel 1800.000000");
    Sleep(50);
    PushToConsole("AccelInc 1800.000000");
    Sleep(50);
    PushToConsole("WalkVel 1800.000000");
    Sleep(50);
    PushToConsole("FRunVel 1800.000000");
    Sleep(50);
    PushToConsole("BRunVel 1800.000000");
    Sleep(50);
    PushToConsole("SRunVel 1800.000000");
    Sleep(50);
    PushToConsole("JumpVel 1800.000000");
    Sleep(50);
    PushToConsole("DuckVel 1800.000000");
    Sleep(50);
    }
    }
    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;
    }

    You can do the rest yourself, adding hotkeys isn't hard.
    This get detected ... Don't use it !
    Reason that I think : PTC Addy !


    Sorry for my bad English ! I'm French Canadian !

    - When you use my hack, Please Thank Me

    Release some Hacks []
    Able to code in PhP / Mysql []
    Able to code in VB []
    Able to code in C# []
    Able to do VB Injector []
    Release an Injector []
    Active Member in the Community []
    Member who help small Hacker []

  7. #7
    GridMaster's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Xbox Dashboard
    Posts
    1,629
    Reputation
    54
    Thanks
    204
    I don't know how to make each feature activated and deactivated by hotkey. How?

    I know what code to use, but i ahve no idea where to put it in relation to the OTHER hotkey codes...

    Quote Originally Posted by Dave84311 View Post
    Boys and girls, this is what we call a retard.

  8. #8
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    My Mood
    Doh
    Quote Originally Posted by trevmmeister View Post
    I don't know how to make each feature activated and deactivated by hotkey. How?

    I know what code to use, but i ahve no idea where to put it in relation to the OTHER hotkey codes...
    like this for hotkeys

    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 )
    {
    DWORD *LTClient = ( DWORD* )(0x3778BFB0);
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    
    void main() 
    {
    
    	bool walls = false, recoil = false, reload = false, cham = false;
    
    	while(true)
    	{
    
    		if(GetAsyncKeyState(VK_NUMPAD0)<0){     
    			walls = !walls;  
    			if(walls){ 
    				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
    				PushToConsole("HealHP 100");
    			} else { 
    				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
    				
    			}
    			Sleep(300);
    		}
    
    		if(GetAsyncKeyState(VK_NUMPAD1)<0){
    			recoil = !recoil;
    			if(recoil){
    				memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    				PushToConsole("SkelModelStencil 2");
    				PushToConsole("ActivationDistance 100000");
    			} else {
    				memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
    				memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
    				memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
    				memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
    				memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
    				PushToConsole("SkelModelStencil 0");
    			}
    			Sleep(300);
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)<0){
    			reload = !reload;
    			if(reload){
    				memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
    				PushToConsole("InfiniteAmmo 1");
    							PushToConsole("Accuracyinc 99999999999");
                PushToConsole("CamDamage 999999999");
                PushToConsole("CamRecoilRecover 99999999");
                PushToConsole("Recoildec 99999999");
                PushToConsole("PusherMaxVelocity 999999999");
    			} else {
    				memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
    			}
    			Sleep(300);
    
    		}
    	Sleep(10);
    	}
    	{
    	if(GetAsyncKeyState(VK_NUMPAD3)<0)
    	PushToConsole("FootPrintBlendMode 0");
        PushToConsole("TrailSegmentLifetime 0");
        PushToConsole("FootStepSoundRadius 0");
        PushToConsole("QuietMovementVolumeFactor 0");
    	}
    	{
    		if(GetAsyncKeyState(VK_NUMPAD4)<0)
    			PushToConsole("Accuracyinc 99999999999");
                PushToConsole("CamDamage 999999999");
                PushToConsole("CamRecoilRecover 99999999");
                PushToConsole("Recoildec 99999999");
                PushToConsole("PusherMaxVelocity 999999999");
    	}
    	{
    	if(GetAsyncKeyState(VK_NUMPAD5)<0)
    		PushToConsole("ActivationDistance 100000");
    
    }
    	{
    		if(GetAsyncKeyState(VK_NUMPAD6)<0)
    			PushToConsole("DestroyProjectiles 1");
    	}
    	{
    		if(GetAsyncKeyState(VK_NUMPAD7)<0)
    			PushToConsole("InfiniteAmmo 1");
    	}
    	{
    		if(GetAsyncKeyState(VK_NUMPAD7)<0)
    			PushToConsole("Rangedamage 10000000");
    	}
    	if(GetAsyncKeyState(VK_NUMPAD8)<0)
    		PushToConsole("DefaultGP 50000");
    }
    void dwHackThread() {
    }	
    
    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;
    }
    don't actually use the above code, its detected, and i just posted that as an example for how to use hotkeys

  9. The Following User Says Thank You to supercarz1991 For This Useful Post:

    GridMaster (07-22-2010)

  10. #9
    GridMaster's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Xbox Dashboard
    Posts
    1,629
    Reputation
    54
    Thanks
    204
    Damn... I see, thanks.

    I wasnt sure how to space them.

    Quote Originally Posted by Dave84311 View Post
    Boys and girls, this is what we call a retard.

  11. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Not trying to sound like a prick or an asshole here but guys, learn to use the search button! You can find multiple hotkey bases and other threads looking for the same thing as this one in this forum!

  12. #11
    GridMaster's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Xbox Dashboard
    Posts
    1,629
    Reputation
    54
    Thanks
    204
    You sound like a prick.

    lol

    Quote Originally Posted by Dave84311 View Post
    Boys and girls, this is what we call a retard.

Similar Threads

  1. Replies: 37
    Last Post: 06-20-2006, 05:24 PM
  2. Pre-Regerstration - E3 Codes
    By Dave84311 in forum WarRock - International Hacks
    Replies: 67
    Last Post: 06-13-2006, 09:06 AM
  3. hi can any1 help me make or find a cheat code
    By CrUsHa in forum WarRock - International Hacks
    Replies: 3
    Last Post: 05-19-2006, 05:39 PM
  4. a Couple WPE Weapon codes?
    By phil823 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 02-10-2006, 03:14 PM