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;
}
}
}
}
//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);
}
}