Code for a spacebar fly hack!??

Posts 3138 of 38 · Page 3 of 3
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.
Quote Originally Posted by richdude212 View Post
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)

All my other simple on/off hacks work just fine.
try this instead
[php]if(GetAsyncKeyState(VK_INSERT) < 0){
if(fly==false){
fly=true;
}else{
fly=false;
}
}
if( fly == true ){
if(GetAsyncKeyState(VK_SPACE) < 0 ){
ConsolePush( "PlayerGravity 800" );
}else{
ConsolePush( "PlayerGravity -800" );
}
}else{
ConsolePush( "PlayerGravity -800" );
}[/php]
/Close request all here typing the same thing again and again i_i
No be queit none of these have worked for me. im still trying diffrent thing but its not working!
Try mine.


Code:
if(GetAsyncKeyState(VK_INSERT)< 0){
			ConsolePush("PlayerGravity 800");
			Sleep(200);
			ConsolePush("PlayerGravity -800");
		}else{
			ConsolePush("PlayerGravity -800");
		}
Wow.. I dont understand on how ppl need help with hotkeys.. LoL

Its self explanatory... if you use a TUT
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" );
were do you type it in in new and dont no much
wow i can use this, thanks every1
Posts 3138 of 38 · Page 3 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?