C++ Spectator list for CSGOsimple

  • Автор темы Автор темы ba1m0v
  • Дата начала Дата начала
фа-фа-фаина, фаина
Забаненный
Забаненный
Статус
Оффлайн
Регистрация
19 Апр 2020
Сообщения
327
Реакции
138
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код:
Expand Collapse Copy
    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();
    }


Ez spectator list for imgui, enjoy
 
Код:
Expand Collapse Copy
    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();
    }


Ez spectator list for imgui, enjoy
SS?
 
1593777814741.png
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
What's the point posting smth like this?
 
Назад
Сверху Снизу