ExclamationHelp on making hotkey hack (Noob Alert)

Posts 114 of 14 · Page 1 of 1
Help on making hotkey hack (Noob Alert)
I just got NX Chams in my hotkey hack. The NX Chams work completely. So i tried adding more hacks but they don't work whenever I turn them on. I can't figure out why. I know the ptc commands that I am using work because they worked on a different hack. Also there are no errors when building it.
Here is the code for it. Thanks to msflames3 for giving me the hotkey source.

Code:
void main()
{
{
bool nxchams = false;
while(true)
if(GetAsyncKeyState(VK_NUMPAD1)<0){
            if(nxchams){
                PushToConsole("SkelModelStencil 0");
                nxchams = false;
            } else {
                PushToConsole("SkelModelStencil 1");
                nxchams = true;
            }
			Sleep(200); //to make sure
        }
bool boxes = false;
while(true)
if(GetAsyncKeyState(VK_NUMPAD2)<0){
            if(boxes){
                PushToConsole("ModelDebug_DrawBoxes 0");
                boxes = false;
            } else {
                PushToConsole("ModelDebug_DrawBoxes 1");
                boxes = true;
            }
			Sleep(200); //to make sure
}        
bool nospread = false;
while(true)
	if(GetAsyncKeyState(VK_NUMPAD3)<0){
		if(nospread){
			PushToConsole("PerturbRecoil 9.000000");
			PushToConsole("PerturbRotationEffect 3.000000");
            PushToConsole("PerturbIncreaseSpeed 3.000000");
            PushToConsole("PerturbWalkPercent 9.000000");
            PushToConsole("PerturbFiringIncreaseSpeed 0.500000");
			PushToConsole("FireMovePerturb 9.000000");
			PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
			PushToConsole("ZoomedFireMovePerturb  9.00000");
			PushToConsole("ZoomedFireDuckPerturb 9.000000");
			nospread = false;
		} else {
			PushToConsole("PerturbRecoil 0.000000");
			PushToConsole("PerturbRotationEffect 0.000000");
			PushToConsole("FireMovePerturb 0.000000");
			PushToConsole("PerturbWalkPercent 0");
			PushToConsole("PerturbDecreaseSpeed 0");
			PushToConsole("PerturbIncreaseSpeed 0");
			PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
			PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
			PushToConsole("ZoomedFireMovePerturb 0.000000 ");
			PushToConsole("ZoomedFireDuckPerturb 0.000000");
			nospread = true;
		}
		Sleep(200);
	}

}
}
just start off with nx chams boxes and no spread without hotkeys...
I have the no spread, boxes, pickup, removals, show fps, and no fog on it right now.
is it working i think u might need new ltc if u using his base..
Everything is working that i know of. Some of the removals may be junk but everything else is tested and working.
basically, under voided main, you want to bool nxchams false.. so its not on when u start.

[php]bool nxchams = false;[/php]

then under while(true), you want to state your code.. what to have it do if the hotkey isnt pressed.

[php]if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
}
}[/php]
so we stated what false is. now to put what true is (after hotkey is pressed). after nxchams = false, put

[php] } else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
[/php]
so now we have

[php]
// ** ** //
//CREDITS TO MSFLAMES3//
// ** ** //
void(FlamesBase){
bool nxchams = false;
while(true){
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
} else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
}
Sleep(200) //to make sure
}
}[/php]

be sure to give me credits.
Quote Originally Posted by CAFlames View Post
basically, under voided main, you want to bool nxchams false.. so its not on when u start.

[php]bool nxchams = false;[/php]

then under while(true), you want to state your code.. what to have it do if the hotkey isnt pressed.

[php]if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
}
}[/php]
so we stated what false is. now to put what true is (after hotkey is pressed). after nxchams = false, put

[php] } else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
[/php]
so now we have

[php]
// ** ** //
//CREDITS TO MSFLAMES3//
// ** ** //
void(FlamesBase){
bool nxchams = false;
while(true){
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
} else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
}
Sleep(200) //to make sure
}
}[/php]

be sure to give me credits.
Good job flames !
Quote Originally Posted by CAFlames View Post
basically, under voided main, you want to bool nxchams false.. so its not on when u start.

[php]bool nxchams = false;[/php]

then under while(true), you want to state your code.. what to have it do if the hotkey isnt pressed.

[php]if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
}
}[/php]
so we stated what false is. now to put what true is (after hotkey is pressed). after nxchams = false, put

[php] } else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
[/php]
so now we have

[php]
// ** ** //
//CREDITS TO MSFLAMES3//
// ** ** //
void(FlamesBase){
bool nxchams = false;
while(true){
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
} else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
}
Sleep(200) //to make sure
}
}[/php]

be sure to give me credits.
it was working then this happened after i added ur code

nvm i figured out what it was
the sleep was fkking it up now idk where to stick sleep

fixed

while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
} else {
PushToConsole("SkelModelStencil 1");
nxchams = true;

}
Sleep(200); //to make sure
}


works perfectly now to make it not lagg
Cool it worked but it won't turn off my hack if i press "numberpad 0" again. I could just add another hotkey to turn it off but you just helped me alot. Thanks.
Quote Originally Posted by cookie hack View Post
Cool it worked but it won't turn off my hack if i press "numberpad 0" again. I could just add another hotkey to turn it off but you just helped me alot. Thanks.
It shud turn off to. Make sure everything is c and ped perfectly
Quote Originally Posted by CAFlames View Post


It shud turn off to. Make sure everything is c and ped perfectly
and to make sure hack shield ur auto hacks get D/C And Patched Quicker
Yay i just forgot a little bit of code and now it works.
coding is NOT that hard people
Posts 114 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?