Thread: code

Results 1 to 11 of 11

Threaded View

  1. #1
    dugindog's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    210
    Reputation
    7
    Thanks
    20
    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 11:51 AM.

Similar Threads

  1. Replies: 37
    Last Post: 06-20-2006, 04:24 PM
  2. Pre-Regerstration - E3 Codes
    By Dave84311 in forum WarRock - International Hacks
    Replies: 67
    Last Post: 06-13-2006, 08: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, 04:39 PM
  4. a Couple WPE Weapon codes?
    By phil823 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 02-10-2006, 02:14 PM