-
Автор темы
- #1
Yah ot v3 watermark not equals but looks
Код:
if (!vars.misc.watermark)
return;
char path[MAX_PATH], *name = NULL;
GetEnvironmentVariable((LPCTSTR)"USERPROFILE", (LPSTR)path, (DWORD)MAX_PATH);
name = &path[std::strlen(path) - 1];
for (; *name != '\\'; --name);
++name;
int screen_x, screen_y;
interfaces.engine->GetScreenSize(screen_x, screen_y);
static int fps, old_tick_count;
if ((interfaces.global_vars->tickcount - old_tick_count) > 50) {
fps = static_cast<int>(1.f / interfaces.global_vars->frametime);
old_tick_count = interfaces.global_vars->tickcount;
}
std::stringstream ss;
auto net_channel = interfaces.engine->GetNetChannelInfo();
auto local_player = reinterpret_cast<IBasePlayer*>(interfaces.ent_list->GetClientEntity(interfaces.engine->GetLocalPlayer()));
std::string outgoing = local_player ? std::to_string((int)(net_channel->GetLatency(FLOW_OUTGOING) * 1000)) : "0";
ss << "Unlucky.club [Beta]" << " | " << name << " | " << outgoing.c_str() << "ms" <<" | fps: " << fps << " | " << currentDateTime().c_str() << "";
int x, y, w, h;
int textsize = Drawing::GetStringWidth(fonts::esp_name, ss.str().c_str());
g_Render->FilledRect(screen_x - (textsize + 20), 5, textsize + 10, 15, color_t(33, 33, 33, 150));
g_Render->FilledRect(screen_x - (textsize + 20), 5, textsize + 10, 2, color_t(120, 130, 255));
g_Render->DrawString(screen_x - (textsize + 15), 7, color_t(200, 200, 200), false, fonts::menu_main, ss.str().c_str());
Вложения
-
17.7 KB Просмотры: 779