Загрузка данных


import pymem
import time
import ctypes

def main():
    try:
        pm = pymem.Pymem("cs.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: 
            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()