Created
June 27, 2015 11:34
-
-
Save p3nj/579ea78cc88e577a41f1 to your computer and use it in GitHub Desktop.
simplest triggerbot in csgo base code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int CrossID;//this variable stores the current CrosshairID | |
//add the current base and offsets here, ReadAddress is my custom ReadProcessMemory function. You have to find your own online or create it yourself to RPM! | |
CrossID = ReadAddress(process, base+offsets); | |
if (CrossID != 0 ) //if there is something in the Crosshair | |
{ | |
this.BackColor = Color.Green;//just to see if it works | |
Trigger.MouseDown("LEFT");//press left mouse key down | |
Thread.Sleep(5);//hold mouse key down for 5ms | |
Trigger.MouseUp("LEFT");//release mouse key | |
} | |
else | |
{ | |
this.BackColor = Color.Red; //if there is nothing in crosshair background will be red | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment