Small Hotkey Snipplet
VERSION 1.0
Code i was working on before my computer fucked up and lost everything but thank god for picture memory :P.
Anyways just version 1.00 and more code i add the version goes higher and will be updated till i get bored of adding info lol.
Code:
struct iHack { // the struct that will be used for each hack The name and Its vaule
char* Name;
int Value;
};
static enum sHacks
{
Speed = 1, //Just need to define it as 1 and it will auto caculate the rest of them
Superjump,
VirtualJump,
VirtualDig,
NoFog,
Boxes,
WorldWireFrame,
PlayerWireFrame,
ShowFPS,
NxChams
};
iHack Hack[] = {
// Name Value
{"Speed", 0 },
{"Superjump", 0 },
{"VirtualJump", 0 },
{"VirtualDig", 0 },
{"NoFog", 0 },
{"Boxes", 0 },
{"WorldWireFrame", 0 },
{"PlayerWireFrame", 0 },
{"ShowFPS", 0 },
{"NxChams", 0 }
};
INT MaxSpeed = 5;
INT MaxSuperJump = 5;
// YOU can do the rest its simple.
VOID HotKeys(){
//================================
//=========SPEED HOTKEYS==========
//================================
if(GetAsyncKeyState(VK_UP)&1){//If Up Arrow Is Pressed
if(Hack[Speed].Value < MaxSpeed)//Check and see if the vaule of Speed is less than MaxSpeed
Hack[Speed].Value++; //If the above are correct add to the Speed Vaule
}
if(GetAsyncKeyState(VK_DOWN)&1){//If Down Arrow is pressed
if(Hack[Speed].Value > MaxSpeed)//Check and see if the vaule of speed is greater than MaxSpeed
Hack[Speed].Value--;//If the above are correct minus from the vaule of Speed
}
//ADD MORE HOTKEYS HERE
}
VOID Hacks(){
//================================
//===========SPEED HACK===========
//================================
if(Hack[Speed].Value = 1){
//Do Speed
}
if(Hack[Speed].Value = 2){
}
if(Hack[Speed].Value = 3){
}
if(Hack[Speed].Value = 4){
}
if(Hack[Speed].Value = 5){
}
if(Hack[Speed].Value = 0){
//Orginal Speed
}
//ADD MORE HACKS HERE
}