Help I forgot the knew hotkey format?

Posts 16 of 6 · Page 1 of 1
Help I forgot the knew hotkey format?
Code:
void main()
{
	while(true)
	{	
		PushToConsole("ShowFPS 1");//Auto on (Look at top left corner and it shows that means it works)
		PushToConsole("ModelShadow_Proj_MaxProjDist 1");//No Spread
		PushToConsole("PerturbRotationEffect  0.000000" );
		PushToConsole("PerturbIncreaseSpeed 0.000000" );
		PushToConsole("PerturbWalkPercent 0.000000" );
		PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
		PushToConsole("PerturbRecoil 0.000000" );
		PushToConsole("FireMovePerturb 0.000000" );
		PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
		PushToConsole("ZoomedFireMovePerturb 0.000000" );
		PushToConsole("ZoomedFireDuckPerturb 0.000000" );
		PushToConsole("ActivationDistance 999999" );//Pickup
		PushToConsole("FogEnable 1" );//No Fog
		PushToConsole("WeaponSway 0.000000" );//No Sway
		PushToConsole("FireSpeed 999.999999" );//Fire Speed
		PushToConsole("WalkVel 86.000000");//Legit Speed
		PushToConsole("FRunVel 380.000000");
		PushToConsole("BRunVel 380.000000");
		PushToConsole("SRunVel 380.000000");
		PushToConsole("DuckVel 90.000000");
		if(GetAsyncKeyState(VK_NUMPAD1) > 0)//Nx Chams
		{
			PushToConsole("SkelModelStencil 1");
		}else{
			PushToConsole("SkelModelStencil 0");
		}
	}
}
This is my hack i need help with the knew hot key format can any one fix?
if(GetAsyncKeyState(VK_NUMPAD1){
PushToConsole(hackhere");
else
PushtoConsole("hackhere");
}
is it like this


void main()
{
while(true)
bool chams = false;
{
if(GetAsyncKeyState(VK_NUMPAD1) > 0)//Nx Chams
{
PushToConsole("SkelModelStencil 1");
chams = true;
}else{
PushToConsole("SkelModelStencil 0");
chams = false;
}
}
Just do this, I find it simpler to understand:
Code:
bool nxchams = false;

if(GetAsyncKeyState(VK_NUMPAD1)&1){
     nxchams = !nxchams;
     if(nxchams)
          ptc("blabla 1");
     else
          ptc("blabla 0");
}
Or if you want you can do:
Code:
bool nxchams = false;

if(GetAsyncKeyState(VK_NUMPAD1)&1)
     nxchams = !nxchams;

if(nxchams)
     ptc("blabla 1");
else
     ptc("blabla 0");
It all does the same thing. I just find using &1 easier for hacks that you don't need to hold down.
bool chams = false;
Code:
void main()
{
     while(true) {
             if(GetAsyncKeyState(VK_NUMPAD0) & 1)
             {
                 chams =! chams;
                     if(chams)
            PushToConsole("Blah");
                else 
             PushToConsole("Blah blah");
    }
}
Typed it all up from my iPod Touch out of bordom.
Edit: Whoa, LightzOut beat me to it.
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?