Results 1 to 9 of 9
  1. #1
    calvinchau309's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0

    Can someone help me fix

    Can u teach me how to and where to put hotkeys?
    Here is my code
    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()
    {
    while(true)
    {
    PushToConsole("SkelModelStencil 1");
    PushToConsole("drawguns 1");
    PushToConsole("FogEnable 1" );
    PushToConsole("ModelDebug_DrawBoxes 1" );
    PushToConsole("PlayerGravity -800" );
    PushToConsole("WeaponSway 0.000000" );
    PushToConsole("MuzzleLight 0" );
    PushToConsole("ActivationDistance 999999" );
    PushToConsole("JumpVel 600.000000" );
    PushToConsole("FragSelf 1" );
    PushToConsole("ReloadSpeed 0.000000" );
    PushToConsole("FireSpeed 999.999999" );
    //No spread
    PushToConsole("PerturbRotationEffect  0.000000" );
    PushToConsole("PerturbIncreaseSpeed 0.000000" );
    PushToConsole("PerturbWalkPercent 0.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    PushToConsole("PerturbRecoil 0.000000" );
    PushToConsole("FireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    PushToConsole("ZoomedFireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    PushToConsole("PlayerGravity 0");
    PushToConsole("PlayerVelocity 0");
    }
    }
    DWORD WINAPI HackThread(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, HackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    This is not "your" Code..
    This is why i dont help C&Per's

  3. #3
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    lol dont help him

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  4. #4
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Put it between the left and right butt cheek of my ass.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  5. #5
    calvinchau309's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    Lol you guys are ....... I take backs its mine....

  6. #6
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    You add an if statement for whether or not the user is or was pressing the key. See MSDN for more details.

  7. #7
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by calvinchau309 View Post
    Lol you guys are ....... I take backs its mine....
    Just put in hotkeys after while true.

    Put (After void main)

    bool nxchams = false;


    then after while(true) Put:

    if(VK_NUMPAD1<0){
    if(nxchams){
    //chams off here;
    nxchams = false;
    }else{
    //chams on here;
    nxchams = true;
    }
    }

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  8. #8
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    Quote Originally Posted by CAFlames View Post


    Just put in hotkeys after while true.

    Put (After void main)

    bool nxchams = false;


    then after while(true) Put:

    if(VK_NUMPAD1<0){
    if(nxchams){
    //chams off here;
    nxchams = false;
    }else{
    //chams on here;
    nxchams = true;
    }
    }
    You trollin or serious? If serious then....

    GetAsyncKeyState Function (Windows)
    Last edited by master131; 02-20-2011 at 03:24 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  9. #9
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    Quote Originally Posted by master131 View Post
    You trollin or serious? If serious then....

    GetAsyncKeyState Function (Windows)
    I think he posted that way to make the kid do at least a lil of his own research with no spoon feeding