fly hack

Posts 16–23 of 23 · Page 2 of 2
This can be done EASY

if(GetAsyncKeyState (VK_NUMPAD1))

if( GetAsyncKeyState(VK_SPACE)<0)
PushToConsole("PlayerGravity 800");
else
PushToConsole("PlayerGravity -800");
Quote Originally Posted by ~Liberty~ View Post
This can be done EASY

if(GetAsyncKeyState (VK_NUMPAD1))

if( GetAsyncKeyState(VK_SPACE)<0)
PushToConsole("PlayerGravity 800");
else
PushToConsole("PlayerGravity -800");
if you jump you will fly higher, higher and higher and dont stop until you press space again ... so your flyhack is not controllable
Quote Originally Posted by Solify View Post
if you jump you will fly higher, higher and higher and dont stop until you press space again ... so your flyhack is not controllable
Add it to an menu and its controllable.
yeah i was fanatic at creating hacks today downloaded everyfreaking tool made a normal hack... and then time for a d3d and what gives the VC++ 2010 doesnt support a add for files of dx ._. i would need to change a file in the directory to acces it and such now i need to search a vc++ 2008 express to get it working.

Quote Originally Posted by ~Liberty~ View Post
This can be done EASY

if(GetAsyncKeyState (VK_NUMPAD1))

if( GetAsyncKeyState(VK_SPACE)<0)
PushToConsole("PlayerGravity 800");
else
PushToConsole("PlayerGravity -800");
yeah already tested this with hotkey only but strangly it bugged like hell... or didnt work >.>
Quote Originally Posted by Kuro Tenshi View Post
told ya addies + fly hack can be done by ptc maybe gravity 0 with a key increase + i still need to find the code in C++ but in c# it would be

this was the command:
PlayerGravity 800 (-300)

Code:
bool keyup = GetAsyncKeyState(VK_NUMPAD8);
bool keydown = GetAsyncKeyState(VK_NUMPAD2);

main()
{
	While(1)
	{
		PushToConsole("PlayerGravity {0}",value);
		if(keyup == 1)
		{
			if (value < 800)
			{
				value+=10;
			}
			elseif(value > 800)
			{
				value;
			}
		}	

		if (keydown == 1);
		{
			if (value > -300)
			{
				value-=10;
			}
			elseif(value < -300)
			{
				value;
			}
		}
	}
}
i dont know what the code for {0} is in C++ all i can find is \0 but thats null...

gona test this with chams for a second.
didnt work that well i have a C-code on my laptop for a little car... it has somecodes in it that might help to figure it out. its 4:30 already better get going.
Code:
//GOD I LOVES THE INTERNET
//i used mwb1234 + Coder Nevers source.
#include <windows.h>
#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>

#define LtClient 0x377XXXXX

class BadConversion : public std::runtime_error {
public:
  BadConversion(std::string const& s)
    : std::runtime_error(s)
    { }
};

inline std::string stringify(double x)
{
  std::ostringstream o;
  if (!(o << x))
    throw BadConversion("stringify(double)");
  return o.str();
}

double value = 0;

void __cdecl PushToConsole( const char* szCommand )
{
	/*
	*/
}
bool IsGameReadyForHook()
{
    /* 
    */
}

void main()
{
	bool chams = false;
	while(true)
	{

		if(GetAsyncKeyState(VK_NUMPAD1)<0){//Nx Chams hack
			if(chams){
				value = 0;
				PushToConsole("SkelModelStencil 0");
				//PushToConsole("");//SkelModelStencil 0
				chams = false;
			} else {
				value=1;
				std::string test ("SkelModelStencil " + stringify(value));//stringify(value)
				const char* pszConstString = test.c_str ();
				PushToConsole(pszConstString);
				//PushToConsole("");//SkelModelStencil 1
				chams = true;
			}
		}
		Sleep(20);
	}
}
ok int to string to char completed it works... with chams now imgoing to test fly hack with the gravity.

buttons not pressed = 0;
button 8 += 10;
button 5 -= 10;
max + 800.
min -300.

actually i need the y addie too for the max height but it changes per map so ill need to do a value + 200 or something to make it possible not to fly to high.

Fixed your code a little bit.
[php]bool keyup = GetAsyncKeyState(VK_NUMPAD1);
bool keydown = GetAsyncKeyState(VK_NUMPAD0);
double value = 0;
char ABC[33];
sprintf(ABC, "PlayerGravity %d" , value);
PushToConsole(ABC);
if(keyup == 1)
{
if (value < 800)
{
value+=10;
}
else if(value > 800)
{
value;
}
}

if (keydown == 1);
{
if (value > -300)
{
value-=10;
}
else if(value < -300)
{
value;
}
}[/php]
yeah both will work i guess but still this remains:
bool keyup = GetAsyncKeyState(VK_NUMPAD1);
bool keydown = GetAsyncKeyState(VK_NUMPAD0);

if you compile it there will be a statement froced true & false
and then the keys work bad or dont work at all...


ahwell still dont have it in a d3d maybe that will fix it...
owyeah maybe im gona go to OP7 for a while since ce does work for it :3 lets create some cheap ass viphack since that game still has Godmode.
ah fked it use my controlable flyhack -.-
Code:
if(GetAsyncKeyState(0x46)<0){ //Flyhack
                PushToConsole("PlayerGravity 800");
                Sleep(100);
		PushToConsole("PlayerGravity -800");
}
it does work so dont tell me it doesnt ... its the easiest version to make a controlable flyhack and i will not post a keydown flyhack version -.-
Posts 16–23 of 23 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?