Ok... So basically, I was programming a hack, and when I built it, it said it was successful but when it came down to using it, I could only use the chams... Now I put FPS, speed, and hover in the hotkeys... Now I don't know if I am doing this correctly or not but this is what I did for say.. Number pad 3 hack for whatever
Code:
//I declared for speed the "bool speed = false" already as I will display later
if(GetAsyncKeyState(VK_NUMPAD3)<0)
{
if(speed)
{
PushToConsole ("BaseMoveAccel 3000.000000");
PushToConsole ("StartAccel 500.000000");
PushToConsole ("MaxAccel 3000.000000");
PushToConsole ("AccelInc 6000.000000");
PushToConsole ("WalkVel 70.000000") ;
PushToConsole ("FRunVel 285.000000");
PushToConsole ("BRunVel 285.000000");
PushToConsole ("SRunVel 285.000000");
PushToConsole ("DuckVel 50.000000");
speed = 0;
}
else
{
PushToConsole ("BaseMoveAccel 3000.000000");
PushToConsole ("StartAccel 3000.000000");
PushToConsole ("MaxAccel 3000.000000");
PushToConsole ("AccelInc 3000.000000");
PushToConsole ("FRunVel 3000.000000");
PushToConsole ("BRunVel 3000.000000");
PushToConsole ("SRunVel 30000.000000");
PushToConsole ("DuckVel 3000.000000");
speed = 1;
}
and the start of my hack goes like this
Code:
void main()
{
while (!IsGameReadyForHook()){
Sleep(20);
}
bool NxChams = false;
bool Fps = false;
bool speed = false;
bool hover = false;
while (true)
then the code for my hacks :P I don't wanna FULLY release it but still... Could someone tell me where I went wrong? And PLEASE tell me if there is a better sleep timer