Hacks staying on

Posts 1–8 of 8 · Page 1 of 1
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
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.
thank you but i figured it out befor u told me lol thanks anyway

This hack won't work very well.
I thought you needed to PTC from Any hooked D3D Function.
Sleeping in D3D function is horrible.
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.
well it worked out good for me. i have all ready finished my hack lol
Makes me a sad panda to think that people are making hacks without even knowing whar a memory address is.
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;
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us