Jump to content

source QUESTION. How to code a prefix bind for aimbot?


Reny Sevnta
 Share

Recommended Posts

ANSWERED.

Thanks Fizzy!😄

 

Hi. 

I have a question. I was making a csgo cheat with imgui. But im stuck on keybinds.

i coded the menu to choose a keybind. But i cannot figure out the code tp get the keybind to use aimbot

Edited by Reny Sevnta
Link to comment
Share on other sites

bool CAimbotGlobal::IsKeyDown()
{
	return !Vars::Aimbot::Global::AimKey.m_Var ? true : (GetAsyncKeyState(Vars::Aimbot::Global::AimKey.m_Var) & 0x8000);
}

 

 

0x8000 is the realtime state of the key, so it doesn't constantly lock on to a target after you let go of the button

I got this code snippet from unknowncheats somewhere.

Link to comment
Share on other sites

21 minutes ago, Fizzy said:

bool CAimbotGlobal::IsKeyDown()
{
	return !Vars::Aimbot::Global::AimKey.m_Var ? true : (GetAsyncKeyState(Vars::Aimbot::Global::AimKey.m_Var) & 0x8000);
}

 

 

0x8000 is the realtime state of the key, so it doesn't constantly lock on to a target after you let go of the button

I got this code snippet from unknowncheats somewhere.

 wtf stop stealing my work men :waaah:

Link to comment
Share on other sites

  • Fizzy locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...