Quick q. I want it so when the player presses nub4 it start the hack so when they press spacebar they can fly but when they turn it off with nub 4 they press spacebar and jump. Here is the script what did I do wrong? (bool hack = false; is higher up in the script)
[php]if(GetAsyncKeyState(VK_NUMPAD4) < 0){ //Fly
if( hack == false ){
if( GetAsyncKeyState(VK_SPACE) < 0 )
{
ConsolePush( "PlayerGravity 800" );
}else{
ConsolePush( "PlayerGravity -800" );
}
hack = true;
} else {
hack = false;
}
Sleep(200);
}[/php]
All my other simple on/off hacks work just fine.