Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CEsp::SpecList()
- {
- IClientEntity *pLocal = hackManager.pLocal();
- RECT scrn = Render::GetViewport();
- int ayy = 2;
- //Border
- Render::GradientV(+8, +35 + 500 + (16 * ayy), 240, 311, Color(248, 32, 26, 255), Color(188, 32, 26, 255));
- //Main
- Render::DrawRect(+13, +61 + 500 + (16 * ayy), 230, 280, Color(45, 43, 40, 255));
- // X Button
- Render::DrawRect(230, +41 + 500, 15, 15, Color(248, 32, 26, 255));
- Render::Outline(230, +41 + 500, 15, 15, Color(0, 0, 0, 255));
- Render::Text(235, +41 + 500, Color(255, 255, 255, 255), Render::Fonts::Menu, ("X"));
- Render::Text(10 + 5, +41 + 500, Color(255, 255, 255, 255), Render::Fonts::WaterMark, "Spectators");
- // Loop through all active entitys
- for (int i = 0; i < Interfaces::EntList->GetHighestEntityIndex(); i++)
- {
- // Get the entity
- IClientEntity *pEntity = Interfaces::EntList->GetClientEntity(i);
- player_info_t pinfo;
- // The entity isn't some laggy peice of shit or something
- if (pEntity && pEntity != pLocal)
- {
- if (Interfaces::Engine->GetPlayerInfo(i, &pinfo) && !pEntity->IsAlive() && !pEntity->IsDormant())
- {
- HANDLE obs = pEntity->GetObserverTargetHandle();
- if (obs)
- {
- IClientEntity *pTarget = Interfaces::EntList->GetClientEntityFromHandle(obs);
- player_info_t pinfo2;
- if (pTarget)
- {
- if (Interfaces::Engine->GetPlayerInfo(pTarget->GetIndex(), &pinfo2))
- {
- char buf[255]; sprintf_s(buf, "%s -> %s", pinfo.name, pinfo2.name);
- RECT TextSize = Render::GetTextSize(Render::Fonts::ESP, buf);
- Render::Text(14, 555 + (16 * ayy), pTarget->GetIndex() == pLocal->GetIndex() ? Color(240, 70, 80, 255) : Color(255, 255, 255, 255), Render::Fonts::Menu, buf);
- ayy++;
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement