QuestionCorrect FH?

Posts 115 of 27 · Page 1 of 2
Correct FH?
I know that using this will make you fly higher and higher

Code:
		if(GetAsyncKeyState(VK_SPACE)<0)
		PTC("PlayerGravity 700");
but, how do you make it so that when you stop holding down the space bar, you will fall and not continue to rise?
yes.
//tooshort..
Quote Originally Posted by pashak View Post
yes.
//tooshort..
That didn't answer my question.
if(GetAsyncKeyState(VK_SPACE)) { }
Quote Originally Posted by pashak View Post
if(GetAsyncKeyState(VK_SPACE)) { }
Didn't work. I kept going up when i stoped holding down the space bar.
just use what you had in the beginning ._.
if ( FlyHack )
Do Fly Hacks
else
Do Normal Gravity
Quote Originally Posted by whit View Post
if ( FlyHack )
Do Fly Hacks
else
Do Normal Gravity
so your saying

if spacebar.pressed
gravity
else
nogravity

?

But thats basically what i have

Code:
	if(Hack.fly){
		if(GetAsyncKeyState(VK_SPACE)) { } 
		PTC("PlayerGravity 700");
	}else{
		PTC("PlayerGravity -1000");
	}
All it does is keeps rising until you turn it off.
Code:
	if(Hack.fly){
		if(GetAsyncKeyState(VK_SPACE)) { } 
		PTC("PlayerGravity 700");
	}else{
		PTC("PlayerGravity -1000");
	}

Code:
	if(Hack.fly){
		if(GetAsyncKeyState(VK_SPACE)&1) 
		PTC("PlayerGravity 700");
	else
		PTC("PlayerGravity -1000");
	}
try that but im pretty sure the value for normal gravity is wrong
Quote Originally Posted by whit View Post
Code:
	if(Hack.fly){
		if(GetAsyncKeyState(VK_SPACE)) { } 
		PTC("PlayerGravity 700");
	}else{
		PTC("PlayerGravity -1000");
	}

Code:
	if(Hack.fly){
		if(GetAsyncKeyState(VK_SPACE)&1) 
		PTC("PlayerGravity 700");
	else
		PTC("PlayerGravity -1000");
	}
try that but im pretty sure the value for normal gravity is wrong
Hm.. i dced o.o

let me try it later... im tired, gonna go now.
lol its because you are not looping, you should put that in a loop so when you release the space bar you will start falling, if you do not put that in a loop you will have to press space again to return false and start falling...
oh... thats what you wanted...
Man I'm having a horrible day, I'm on pain meds
Only good part..
Long time never hack ca, but try this:

Code:
bool fly; //or int

if(GetAsyncKeyState(VK_SPACE)<0)
fly =! fly;

if (fly)
PTC("PlayerGravity 700");
else
PTC("PlayerGravity -1000");
Quote Originally Posted by Presiden View Post
Long time never hack ca, but try this:

Code:
bool fly; //or int

if(GetAsyncKeyState(VK_SPACE)<0)
fly =! fly;

if (fly)
PTC("PlayerGravity 700");
else
PTC("PlayerGravity -1000");
Hmm that dced too.

and you for at a } at the bottom.
lol?
Nobody can code here?! Its so easy guys
[html]
if(fly)
{
if(GetAsyncKeyState(VK_space)
PTC("PlayerGravity 700");
else
PTC("PlayerGravity -1200");
}
[/html]
Posts 115 of 27 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?