Skip to content

Instantly share code, notes, and snippets.

@p3nj
Created June 27, 2015 11:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p3nj/579ea78cc88e577a41f1 to your computer and use it in GitHub Desktop.
Save p3nj/579ea78cc88e577a41f1 to your computer and use it in GitHub Desktop.
simplest triggerbot in csgo base code.
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