Загрузка...

Spectator list for CSGOsimple | C++

Тема в разделе C/C++ создана пользователем Gae4Ka_inactive4656187 22 мар 2022. (поднята 24 мар 2022) 440 просмотров

  1. Gae4Ka_inactive4656187
    Gae4Ka_inactive4656187 Автор темы 22 мар 2022 Заблокирован(а) 420 4 ноя 2021
    Код
       void SpectatorList()
    {
    if (!Variables.rageaimbot.SpectatorList)
    return;

    int specs = 0;
    int modes = 0;
    std::string spect = u8"";
    std::string mode = u8"";
    int DrawIndex = 1;

    for (int playerId : GetObservervators(g_EngineClient->GetLocalPlayer()))
    {
    C_BasePlayer* pPlayer = (C_BasePlayer*)g_EntityList->GetClientEntity(playerId);

    if (playerId == g_EngineClient->GetLocalPlayer())
    continue;

    if (!pPlayer)
    continue;

    player_info_t Pinfo;

    g_EngineClient->GetPlayerInfo(playerId, &Pinfo);

    if (Pinfo.fakeplayer)
    continue;

    spect += Pinfo.szName;
    spect += u8"\n";
    specs++;

    }
    bool misc_Spectators = true;

    ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.f, 1.f, 1.f, 1.f));
    ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(8, 8));
    if (ImGui::Begin("Spectator List", &Variables.rageaimbot.SpectatorList, ImVec2(), 1.f, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize))
    {
    ImGui::PopStyleVar();
    ImGui::PopStyleColor();

    if (specs > 0) spect += u8"\n"; /*ЛАСТ*/
    if (modes > 0) mode += u8"\n";
    ImVec2 size = ImGui::CalcTextSize(spect.c_str());

    ImGui::SetWindowSize(ImVec2(200, 25 + size.y));
    ImGui::Text(spect.c_str());
    DrawIndex++;
    }
    ImGui::End();
    }
    [IMG]
     
    22 мар 2022 Изменено
  2. unnamed001
    unnamed001 22 мар 2022 5996 2 сен 2020
    ладна
     
Top
Загрузка...