If your doing it like this you can't turn it off so if ghostmode is one time on you cannot turn it off cuz of the "while(true)" ur in this loop forever!! U can't get out of the while(true) you have to do it in another way I'll post a solution later cuz i have to go now
think about it please =)
Ok here is the code you may use ;-) i didnt tested so look over it
the structure is this:
1. if 9 is pressed then switch ghostmode from on/off to on/off
2. look what it is if its on then do ghostmode else dont do ghostmode
3. do it all from the beginning
[php]
ghostmode=false;
while(true)
{
your hacks...
your hacks...
.
.
.
if(GetAsyncKeyState(VK_NUMPAD9)<0) //Ghostmode
{
if(ghostmode==true)
{
ghostmode=false;
}
else
{
ghostmode=true;
}
if(ghostmode==true)
{
if(GetAsyncKeyState(VK_UP)&1)
{
move8+=1;
}
if(GetAsyncKeyState(VK_DOWN)&1)
{
move8+=-1;
}
if(GetAsyncKeyState(VK_LEFT)&1)
{
move4+=1;
}
if(GetAsyncKeyState(VK_RIGHT)&1)
{
move4+=-1;
}
PushToConsole("CamMaxPosZOffset "+move8);
PushToConsole("CamMaxPosXOffset "+move6);
PushToConsole("CamMaxPosYOffset "+move4);
}
else
{
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
}
}
Sleep(100);
}
[/php]
I hope i helped you
PS: mods if its really not allowed to post this i'm sorry please dont ban me just delete this =)