Вопрос Помогите исправить internal triggerbot

Начинающий
Статус
Оффлайн
Регистрация
2 Июн 2024
Сообщения
2
Реакции[?]
0
Поинты[?]
0
не работает хотя вроде бы офсеты те использую
Код:
#include "Triger.h"

using namespace K;

uintptr_t K::client = (uintptr_t)GetModuleHandle("Client.dll");

void K::Triger()
{

    while (true)
    {

        uintptr_t local_player = *(uintptr_t*)(client + O::dwLocalPlayerPawn);
        if (local_player != NULL)
            return;
        uintptr_t entity_list = *(uintptr_t*)(client + O::dwEntityList);
        if (entity_list != NULL)
            return;
              
        int local_team = *(int*)(local_player + O::m_iTeamNum);
              
        int crosshair_entity = *(int*)(local_player + O::m_iIDEntIndex);
        
 
      

        if (crosshair_entity != -1 && crosshair_entity < 64)
        {
            uintptr_t entity_entry = *(uintptr_t*)(client + entity_list + 0x8 * (crosshair_entity >> 0x9) + 0x10);
            if (entity_entry != NULL)
                continue;
            uintptr_t entity = *(uintptr_t*)(entity_entry + 120 * (crosshair_entity & 0x1FF));
            if (entity != NULL)
                continue;
            int team = *(int*)(entity + O::m_iTeamNum);
            int health = *(int*)(entity + O::m_iHealth);
          

            if (health > 0 && team != local_team) {
                mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
            }

        }
    }
}
 
Сверху Снизу