Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,423
    Reputation
    112
    Thanks
    693

    Code for a spacebar fly hack!??

    Does anyone know of a code that allows you to fly when you hold space bar and when you let go of the space bar you stop flying? i have a fly hack were you press space bar to fly and press it again to stop flying but its gay! So could someone give me advicce thanks

    -Zane

  2. #2
    Braco22's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    150
    Reputation
    12
    Thanks
    607
    This is a controllable fly hack for your hotkey hack!

    Add it to your loop.
    Code:
    	if(GetAsyncKeyState(VK_SPACE)<0)
    		PushToConsole( "PlayerGravity 800" );
    	else
    		PushToConsole( "PlayerGravity -800" );

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

    jdeezy313 (07-27-2010)

  4. #3
    neononxxx's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    why do you wanna know?? so you can kill me?
    Posts
    1,226
    Reputation
    36
    Thanks
    342
    My Mood
    Drunk
    This is simple to do. I don't know why you even bothered to help him.

    Just another example for someone to c&p.

    let people figure it out on their own for a chance.
    They will learn more.
    [IMG]https://www.find-heavyequipmen*****m/images/small-loading.gif [/IMG]Loading content... Please wait while the rest of this post loads.

  5. #4
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Braco22 View Post
    This is a controllable fly hack for your hotkey hack!

    Add it to your loop.
    Code:
    	if(GetAsyncKeyState(VK_SPACE)<0)
    		PushToConsole( "PlayerGravity 800" );
    	else
    		PushToConsole( "PlayerGravity -800" );

    That's what he already has. To get it while you hold down spacebar you're probably going to need a varialbe and a while.

    i.e aircoding ftw (i gotta go to school so i can't test)

    add just below your #includes
    Code:
    int IsFlyingOn = 0;
    Then in your main.

    Code:
    If(GetAsyncKeyState(VK_SPACE)<0){
    IsFlyingOn=1;
    }
    else{
    IsFlyingOn = 0;
    }
    
    If(IsFlyingOn==1){
    PushToConsole("PlayerGravity -800");
    }
    else{
    PushToConsole("PlayerGravity 800");
    }
    Like I said, i didn't test this i just wrote it out then. So have fun

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #5
    Braco22's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    150
    Reputation
    12
    Thanks
    607
    @J-Deezy

    Why make it so complicated? Mine works great.

    This explains it all:
    Code:
    If press spacebar, fly
    else
    glide back to ground
    btw GetAsync is a keydown function. Checks if the key is being pressed/held down.

  7. #6
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Quote Originally Posted by Braco22 View Post
    @J-Deezy

    Why make it so complicated? Mine works great.

    This explains it all:
    Code:
    If press spacebar, fly
    else
    glide back to ground
    btw GetAsync is a keydown function. Checks if the key is being pressed/held down.
    No, GetAsyncKeyState is a key "action" function. Checks if anything at all has happened to the key...

    Code:
    <0)
    
    means if anything has happened to the key.
    Code:
    &1
    
    means its been pressed 1 time.
    Keep me motivated for my hack development!

  8. The Following User Says Thank You to J For This Useful Post:

    tempta43 (07-26-2010)

  9. #7
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    653
    Reputation
    70
    Thanks
    1,157
    My Mood
    Bitchy
    Quote Originally Posted by Blood View Post
    No, GetAsyncKeyState is a key "action" function. Checks if anything at all has happened to the key...

    Code:
    <0)
    
    means if anything has happened to the key.
    Code:
    &1
    
    means its been pressed 1 time.
    Wrong

    &1 is used to check to see if the key has been pressed since the last time you called GeyAsyncKeyState. It only works once per press.

    < 0 or & 0x8000 is used to check if the key is down.

  10. The Following 2 Users Say Thank You to mmbob For This Useful Post:

    J (07-25-2010),tahha (07-26-2010)

  11. #8
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    https://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    500
    My Mood
    Psychedelic
    lol, what a c/p. just learn c++ and come back. and don't c/p, it will ruin your rep, plus it will make everyone hate you.

  12. #9
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,704
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    You don't even need basic C++ for this even
    /yea

  13. #10
    mrsmexy95's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ahahha
    Posts
    25
    Reputation
    10
    Thanks
    2
    My Mood
    Aggressive
    Quote Originally Posted by DeadLinez View Post
    lol, what a c/p. just learn c++ and come back. and don't c/p, it will ruin your rep, plus it will make everyone hate you.
    lol calling other people c+p when ur a C+p to

  14. #11
    whit+'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    264
    Reputation
    10
    Thanks
    37
    My Mood
    Breezy
    Quote Originally Posted by Braco22 View Post
    @J-Deezy

    Why make it so complicated? Mine works great.

    This explains it all:
    Code:
    If press spacebar, fly
    else
    glide back to ground
    btw GetAsync is a keydown function. Checks if the key is being pressed/held down.
    Because J-Deezy is fucking boss..

  15. #12
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by whit+ View Post
    Because J-Deezy is fucking boss..
    chyeeah I am!

    Shame that pseudocode was such a fail. I really shouldn't attempt it when I'm just a beginner myself :P. I think I got it fixed though.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  16. #13
    whit+'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    264
    Reputation
    10
    Thanks
    37
    My Mood
    Breezy
    Quote Originally Posted by J-Deezy View Post


    chyeeah I am!

    Shame that pseudocode was such a fail. I really shouldn't attempt it when I'm just a beginner myself :P. I think I got it fixed though.
    Atleast your learning without the intent to release...

    Thumbs Up for Gay Kitty Kat --->

  17. The Following User Says Thank You to whit+ For This Useful Post:

    Jason (07-25-2010)

  18. #14
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by whit+ View Post
    Atleast your learning without the intent to release...

    Thumbs Up for Gay Kitty Kat --->
    One day I will release, when I know how to make everything (or 99% of the important things, not just PTC) by myself. Gotta give Blood a big props for giving me a class today, I got completely mindfucked but I actually understand dllmain now

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  19. The Following User Says Thank You to Jason For This Useful Post:

    J (07-25-2010)

  20. #15
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Quote Originally Posted by J-Deezy View Post


    One day I will release, when I know how to make everything (or 99% of the important things, not just PTC) by myself. Gotta give Blood a big props for giving me a class today, I got completely mindfucked but I actually understand dllmain now
    And classes shall continue /yea
    Keep me motivated for my hack development!

Page 1 of 3 123 LastLast

Similar Threads

  1. My source code for all my great hacks!!!
    By ilo66 in forum CrossFire Hacks & Cheats
    Replies: 32
    Last Post: 02-26-2010, 02:02 PM
  2. My source code for a Combat Arms hack!!
    By ilo66 in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 02-26-2010, 01:31 PM
  3. Source code for any d3d/memory hack
    By Ragehax in forum C++/C Programming
    Replies: 6
    Last Post: 10-01-2009, 09:10 PM
  4. give me .net(code) for warrock hacks
    By srinuv in forum WarRock - International Hacks
    Replies: 7
    Last Post: 05-02-2009, 10:23 AM
  5. Trading VIP Hacks And Retail M60 Code For LVL 16+ Warrock ACCT
    By xth0rx in forum Trade Accounts/Keys/Items
    Replies: 12
    Last Post: 06-29-2007, 02:51 PM