Help with Ghost Mode
[PHP]bool ghostmode;
int move8 = 0;
int move6 = 0;
int move4 = 0;[/PHP]
[PHP] if(GetAsyncKeyState(VK_NUMPAD9)&1){
//Ghostmode
if(ghostmode==true){
while(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);
Sleep(100);
}
ghostmode=false;
} else {
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
ghostmode=true;
}
}[/PHP]
Help me with Ghost mode. Is this totally wrong??
int move8 = 0;
int move6 = 0;
int move4 = 0;[/PHP]
[PHP] if(GetAsyncKeyState(VK_NUMPAD9)&1){
//Ghostmode
if(ghostmode==true){
while(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);
Sleep(100);
}
ghostmode=false;
} else {
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
ghostmode=true;
}
}[/PHP]
Help me with Ghost mode. Is this totally wrong??


