Памагите
-
Автор темы
- #1
ботов на карте 5, пишет инфу только 1 бота
Python:
import pyMeow as pm
proc = pm.open_process("cs2.exe")
base = pm.get_module(proc, "client.dll")["base"]
dwEntityList = 0x18C6268
m_hPlayerPawn = 0x7E4
m_iHealth = 0x334
m_iszPlayerName = 0x638
def main():
while True:
entityList = pm.r_uint64(proc, base + dwEntityList)
for i in range(1, 64):
listEntry = pm.r_uint64(proc, entityList + (8 * (i & 0x7FFF) >> 9) + 16)
if listEntry == 0: continue
entity = pm.r_uint64(proc, listEntry + 120 * (i & 0x1FF))
if entity == 0: continue
entityCPawn = pm.r_uint(proc, entity + m_hPlayerPawn)
if entityCPawn == 0: continue
listEntry2 = pm.r_uint64(proc, entityList + 0x8 * ((entityCPawn & 0x7FFF) >> 9) + 16)
if listEntry2 == 0: continue
entityPawn = pm.r_uint64(proc, listEntry2 + 120 * (entityCPawn & 0x1FF))
if entityPawn == 0: continue
currentContoller = pm.r_uint64(proc, listEntry + i * 0x78)
if currentContoller == 0: continue
health = pm.r_int(proc, entityPawn + m_iHealth)
name = pm.r_string(proc, currentContoller + m_iszPlayerName)
print(f'{name} // {health}')
exit()
main()