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