Если хотите впихнуть в свой код: [CODE]if (config.misc.spectatorList && interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (!localPlayer->isAlive()) return; interfaces.surface->setTextFont(Surface::font); interfaces.surface->setTextColor(51, 153, 255, 255); # Можно редактировать const auto [width, height] = interfaces.surface->getScreenSize(); int textPositionY{ static_cast<int>(0.5f * height) }; # Тоже можно for (int i = 1; i <= interfaces.engine->getMaxClients(); i++) { auto entity = interfaces.entityList->getEntity(i); if (!entity || entity->isAlive() || entity->isDormant()) continue; static PlayerInfo playerInfo; if (interfaces.engine->getPlayerInfo(i, playerInfo) && entity->getObserverTarget() == localPlayer) { static wchar_t name[128]; if (MultiByteToWideChar(CP_UTF8, 0, playerInfo.name, -1, name, 128)) { const auto [textWidth, textHeight] = interfaces.surface->getTextSize(Surface::font, name); interfaces.surface->setTextPosition(width - textWidth - 5, textPositionY); textPositionY -= textHeight; interfaces.surface->printText(name); } } } }[/CODE] Код [CODE]if (config.misc.spectatorList && interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (!localPlayer->isAlive()) return; interfaces.surface->setTextFont(Surface::font); interfaces.surface->setTextColor(51, 153, 255, 255); # Можно редактировать const auto [width, height] = interfaces.surface->getScreenSize(); int textPositionY{ static_cast<int>(0.5f * height) }; # Тоже можно for (int i = 1; i <= interfaces.engine->getMaxClients(); i++) { auto entity = interfaces.entityList->getEntity(i); if (!entity || entity->isAlive() || entity->isDormant()) continue; static PlayerInfo playerInfo; if (interfaces.engine->getPlayerInfo(i, playerInfo) && entity->getObserverTarget() == localPlayer) { static wchar_t name[128]; if (MultiByteToWideChar(CP_UTF8, 0, playerInfo.name, -1, name, 128)) { const auto [textWidth, textHeight] = interfaces.surface->getTextSize(Surface::font, name); interfaces.surface->setTextPosition(width - textWidth - 5, textPositionY); textPositionY -= textHeight; interfaces.surface->printText(name); } } } }[/CODE] Если хотите добавить в Misc [CODE]void Misc::spectatorList() noexcept { if (config.misc.spectatorList && interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (!localPlayer->isAlive()) return; interfaces.surface->setTextFont(Surface::font); interfaces.surface->setTextColor(51, 153, 255, 255); const auto [width, height] = interfaces.surface->getScreenSize(); int textPositionY{ static_cast<int>(0.5f * height) }; for (int i = 1; i <= interfaces.engine->getMaxClients(); i++) { auto entity = interfaces.entityList->getEntity(i); if (!entity || entity->isAlive() || entity->isDormant()) continue; static PlayerInfo playerInfo; if (interfaces.engine->getPlayerInfo(i, playerInfo) && entity->getObserverTarget() == localPlayer) { static wchar_t name[128]; if (MultiByteToWideChar(CP_UTF8, 0, playerInfo.name, -1, name, 128)) { const auto [textWidth, textHeight] = interfaces.surface->getTextSize(Surface::font, name); interfaces.surface->setTextPosition(width - textWidth - 5, textPositionY); textPositionY -= textHeight; interfaces.surface->printText(name); } } } } }[/CODE] Код [CODE]void Misc::spectatorList() noexcept { if (config.misc.spectatorList && interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (!localPlayer->isAlive()) return; interfaces.surface->setTextFont(Surface::font); interfaces.surface->setTextColor(51, 153, 255, 255); const auto [width, height] = interfaces.surface->getScreenSize(); int textPositionY{ static_cast<int>(0.5f * height) }; for (int i = 1; i <= interfaces.engine->getMaxClients(); i++) { auto entity = interfaces.entityList->getEntity(i); if (!entity || entity->isAlive() || entity->isDormant()) continue; static PlayerInfo playerInfo; if (interfaces.engine->getPlayerInfo(i, playerInfo) && entity->getObserverTarget() == localPlayer) { static wchar_t name[128]; if (MultiByteToWideChar(CP_UTF8, 0, playerInfo.name, -1, name, 128)) { const auto [textWidth, textHeight] = interfaces.surface->getTextSize(Surface::font, name); interfaces.surface->setTextPosition(width - textWidth - 5, textPositionY); textPositionY -= textHeight; interfaces.surface->printText(name); } } } } }[/CODE]