Advertisement
Guest User

wa

a guest
Feb 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. void Trigger()
  2. {
  3. DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + EntityBase + ((CrossHairID - 1) * EntLoopDist)); // CH = Crosshair.
  4. int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset); // Enemy in crosshair's
  5. int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset); // Enemy in crosshair's team, we need this to compare it to our own player's team)
  6. if (LocalTeam != EnemyTeam && EnemyHealth > 0)
  7. {
  8. // Here you can add a delay before shooting, to make it look legit. This is done using Sleep()
  9. mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
  10. // use Sleep() here for shooting several shots with an ak for example. Not usable with pisto
  11. mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
  12. // use Sleep() here for a 'cooldown' between shots.
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement