Results 1 to 8 of 8
  1. #1
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic

    Hacks staying on

    Ok so i just got a base to work for me. but Im having trouble haveing my hacks to stay on. this is the code im using
    Code:
    bool fps = false;
    if(GetAsyncKeyState(VK_NUMPAD1)){
    fps = true;
    CPush("ShowFps 1");
    Sleep(500);
    }else{
    fps = false;
    CPush("ShowFps 0");
    Sleep(500);
    }
    Please dont flame this is my first hack. And also as a great coder once said (not mentioning flameswor10) The best way to learn is from your mistakes.
    so please just help me

    ^Suck it!


  2. #2
    -Dimensions-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    243
    Reputation
    2
    Thanks
    161
    My Mood
    Aggressive
    Quote Originally Posted by Skaterforeva1 View Post
    Ok so i just got a base to work for me. but Im having trouble haveing my hacks to stay on. this is the code im using
    Code:
    bool fps = false;
    if(GetAsyncKeyState(VK_NUMPAD1)){
    fps = true;
    CPush("ShowFps 1");
    Sleep(500);
    }else{
    fps = false;
    CPush("ShowFps 0");
    Sleep(500);
    }
    Please dont flame this is my first hack. And also as a great coder once said (not mentioning flameswor10) The best way to learn is from your mistakes.
    so please just help me
    Code:
    bool fps = false;
    void Main( void )
    {
    	if ( GetAsyncKeyState( VK_LBUTTON ) < 0 )
    	{
    		CPush( "ShowFps 1" );
    		fps = true;
    		Sleep( 100 );
    	}else{
    		CPush( "ShowFps 0" );
    		fps = false;
    		Sleep( 100 );
    	}
    }
    That should work. If it doesn't PM me.

  3. #3
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic
    thank you but i figured it out befor u told me lol thanks anyway

    ^Suck it!


  4. #4
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love

    This hack won't work very well.
    I thought you needed to PTC from Any hooked D3D Function.
    Sleeping in D3D function is horrible.
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  5. #5
    -Dimensions-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    243
    Reputation
    2
    Thanks
    161
    My Mood
    Aggressive
    Quote Originally Posted by flameswor10 View Post

    This hack won't work very well.
    I thought you needed to PTC from Any hooked D3D Function.
    Sleeping in D3D function is horrible.
    Thats what I thought. I left the sleeps for his sake.

  6. #6
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic
    well it worked out good for me. i have all ready finished my hack lol

    ^Suck it!


  7. #7
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    124
    Makes me a sad panda to think that people are making hacks without even knowing whar a memory address is.

  8. #8
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    Quote Originally Posted by Skaterforeva1 View Post
    Ok so i just got a base to work for me. but Im having trouble haveing my hacks to stay on. this is the code im using
    Code:
    bool fps = false;
    if(GetAsyncKeyState(VK_NUMPAD1)){
    fps = true;
    CPush("ShowFps 1");
    Sleep(500);
    }else{
    fps = false;
    CPush("ShowFps 0");
    Sleep(500);
    }
    Please dont flame this is my first hack. And also as a great coder once said (not mentioning flameswor10) The best way to learn is from your mistakes.
    so please just help me
    easy fix: put "static" before "bool fps = false;". this makes the variable act like a global variable (in reality it is one), but its declared locally and only initialized once

    Code:
    static bool fps = false;
    Last edited by Gordon`; 07-31-2011 at 03:05 AM.


Similar Threads

  1. [Discussion] stay got hack...
    By miD06welly in forum Mission Against Terror Discussions
    Replies: 3
    Last Post: 10-14-2011, 09:05 AM
  2. [Release] Best New Hack ? Stay In Game After it's Over
    By Lonely Tedy Bear in forum Combat Arms Discussions
    Replies: 30
    Last Post: 07-20-2011, 04:04 PM
  3. How to stay in a game withouth getting kicked while hacking
    By asxz in forum Combat Arms Tutorials
    Replies: 4
    Last Post: 05-30-2011, 01:28 PM
  4. [SOLVED]Rank doesn't stay hacked!
    By LaZzie42o in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 06-09-2010, 05:45 PM
  5. Warrock Hack - Tutorial
    By Dave84311 in forum WarRock - International Hacks
    Replies: 667
    Last Post: 10-09-2007, 11:10 AM