color = 0xFF0000
# CSGO USE BGR COLOR FORMAT
import pymem, time
pm = pymem.Pymem("csgo.exe")
client = pymem.process.module_from_name(pm.process_handle, "client.dll").lpBaseOfDll
engine = pymem.process.module_from_name(pm.process_handle, "engine.dll").lpBaseOfDll
dwEntityList = 0x4DA31DC
dwLocalPlayer = 0xD8A2DC
m_hViewModel = 0x32F8
model_ambient_min = 0x58C064
def SetHandColor(LocalPlayer, HEX):
ViewModelHandler = pm.read_int(LocalPlayer + m_hViewModel)
CurrentViewModelEntity = pm.read_int(client + dwEntityList + (((ViewModelHandler & 0xFFF) - 1) * 16))
pm.write_int(CurrentViewModelEntity + 0x70,HEX)
def SetBright():
pm.write_int(engine+ model_ambient_min, 1084227584 ^ pm.read_int(engine + model_ambient_min - 44))
while True:
try:
time.sleep(0.1)
LocalPlayer = pm.read_int(client + dwLocalPlayer);
SetHandColor(LocalPlayer, color)
SetBright()
except:
print('Зайди в игру и запускай')
time.sleep(10)