kill me
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
даю нормальный watermark for weave
Time:
const std::string currentDateTime() {
time_t now = time(0);
struct tm tstruct;
char buf[80];
tstruct = *localtime(&now);
strftime(buf, sizeof(buf), "%X", &tstruct);
return buf;
}
Код:
void c_menu::draw_indicators()
{
if (!vars.visuals.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;
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 << "name cheat hwid | beta | " << name << " " << outgoing.c_str() << "ms" << " | build v2 | " << currentDateTime().c_str() << "";
int x, y, w, h;
int textsize = Drawing::GetStringWidth(fonts::esp_name, ss.str().c_str());
int screen_x, screen_y;
interfaces.engine->GetScreenSize(screen_x, screen_y);
g_Render->FilledRect(screen_x - (textsize + 20), 5, textsize + 10, 18, color_t(33, 33, 33, 150));
g_Render->FilledRect(screen_x - (textsize + 20), 5, textsize + 8, 2, color_t(139, 0, 255));
g_Render->DrawString(screen_x - (textsize + 15), 7, color_t(200, 200, 200), false, fonts::menu_main, ss.str().c_str());
}
const std::string currentDateTime() {
time_t now = time(0);
struct tm tstruct;
char buf[80];
tstruct = *localtime(&now);
strftime(buf, sizeof(buf), "%X", &tstruct);
return buf;
}