i trying activate hacks with LBUTTON (Mouse Click) and disable hacks with (right Click)
and i have problems with my code:
Code:
it is my DrawBox
DrawText(pDevice,70, 85, C_TITLE, "Show Fps");
if(FPS == 1) DrawBox(160, 85, 7, 7, C_ON2, Black, pDevice);
if(FPS == 0) DrawBox(160, 85, 7, 7, C_OFF2, Black, pDevice);
Code:
if(cPos.x > 160 && cPos.x < 7 && cPos.y > 85 && cPos.y < 7) {
if(GetAsyncKeyState(VK_LBUTTON)<0){
if(FPS == 0){
DrawBox(160, 85, 7, 7, C_ON2, Black, pDevice);
FPS = 1;
}
}
}
if(cPos.x > 160 && cPos.x < 7 && cPos.y > 85 && cPos.y < 7) {
if(GetAsyncKeyState(VK_RBUTTON)<0){
if(FPS == 1){
DrawBox(160, 85, 7, 7, C_OFF2, Black, pDevice);
FPS = 0;
}
}
}
PD: my menu start in (x 30) and (Y 70)