Originally Posted by
Sir Sam
Care to explain what you fixed?
Originally I tried making a thread for my BHOP function but I kept messing it up (not used to C# much).
When I finally got the thread working, my function looked like this:
Code:
public void HOP()
{
while (true)
{
if (BhopChkBox.Checked && Keyboard.IsKeyDown(System.Windows.Forms.Keys.Space))
{
myPlayer.Read_BHOP();
if (myPlayer.m_fFlags == 257 || myPlayer.m_fFlags == 263)
{
myPlayer.fProcess.WriteInt("client.dll", (int)Offsets.Default.Jump, 1);
Thread.Sleep(1);
myPlayer.fProcess.WriteInt("client.dll", (int)Offsets.Default.Jump, 0);
}
}
Thread.Sleep(1);
}
}
So the thread starts, it runs infinitely (while true), and if the bhop setting is checked and I am pressing space, it will actually do the code. IDK why it worked then, but it did.