import pymem
import time
import ctypes
def main():
try:
pm = pymem.Pymem("hl.exe")
print("[+] CS 1.6 найдена")
except:
print("[-] CS 1.6 не запущена")
return
crosshair_addr = 0x110B5314 # ваш адрес
print(f"[+] Адрес m_iCrosshairId: {hex(crosshair_addr)}")
print("[*] Триггер-бот запущен. F1 = вкл/выкл. Наводитесь на врага -> автомат.")
enabled = True
last_shot = 0
delay = 100 # миллисекунд между выстрелами
def shoot():
ctypes.windll.user32.mouse_event(0x0002, 0, 0, 0, 0) # нажатие ЛКМ
time.sleep(0.01)
ctypes.windll.user32.mouse_event(0x0004, 0, 0, 0, 0) # отпускание
while True:
if ctypes.windll.user32.GetAsyncKeyState(0x70) & 1: # F1
enabled = not enabled
print("[+] Триггер-бот", "ВКЛ" if enabled else "ВЫКЛ")
if enabled:
try:
val = pm.read_int(crosshair_addr)
if val == 2: # смотрим на врага
now = time.time() * 1000
if now - last_shot > delay:
shoot()
last_shot = now
print("[+] Выстрел")
except:
pass
time.sleep(0.01)
if __name__ == "__main__":
main()