-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
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()
{
int x, y;
interfaces.engine->GetScreenSize(x, y);
std::stringstream ss;
auto net_channel = interfaces.engine->GetNetChannelInfo();
char path[MAX_PATH], * name = NULL;
GetEnvironmentVariable((LPCTSTR)"USERPROFILE", (LPSTR)path, (DWORD)MAX_PATH);
name = &path[std::strlen(path) - 1];
for (; *name != '\\'; --name);
++name;
auto local_player = csgo->local;
std::string outgoing = local_player ? std::to_string((int)(net_channel->GetLatency(FLOW_OUTGOING) * 1000)) : "0";
g_Render->FilledRect(x - 260, 3, 155, 23, color_t(255, 255, 255, 35));
g_Render->Rect(x - 260, 3, 155, 2, color_t(81, 137, 255, 255));
g_Render->FilledRect(x - 105, 3, 155, 23, color_t(255, 255, 255, 35));
g_Render->Rect(x - 105, 3, 155, 2, color_t(81, 137, 255, 255));
ss << "SafeWaRe | " << name << " | " << outgoing << " ms | 64 tick" << " | " << currentDateTime().c_str();
g_Render->DrawString(x - 250, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, ss.str().c_str());
//g_Render->DrawString(x - 140, 8, color_t(255, 0, 0, 255), render::outline, fonts::menu_main, "WaRe");
g_Render->DrawString(x - 190, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, " ");
}
короче я починил нормально вотер чела
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()
{
int x, y;
interfaces.engine->GetScreenSize(x, y);
std::stringstream ss;
auto net_channel = interfaces.engine->GetNetChannelInfo();
char path[MAX_PATH], * name = NULL;
GetEnvironmentVariable((LPCTSTR)"USERPROFILE", (LPSTR)path, (DWORD)MAX_PATH);
name = &path[std::strlen(path) - 1];
for (; *name != '\\'; --name);
++name;
auto local_player = csgo->local;
std::string outgoing = local_player ? std::to_string((int)(net_channel->GetLatency(FLOW_OUTGOING) * 1000)) : "0";
g_Render->FilledRect(x - 260, 3, 155, 23, color_t(255, 255, 255, 35));
g_Render->Rect(x - 260, 3, 155, 2, color_t(81, 137, 255, 255));
g_Render->FilledRect(x - 105, 3, 155, 23, color_t(255, 255, 255, 35));
g_Render->Rect(x - 105, 3, 155, 2, color_t(81, 137, 255, 255));
ss << "SafeWaRe | " << name << " | " << outgoing << " ms | 64 tick" << " | " << currentDateTime().c_str();
g_Render->DrawString(x - 250, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, ss.str().c_str());
//g_Render->DrawString(x - 140, 8, color_t(255, 0, 0, 255), render::outline, fonts::menu_main, "WaRe");
g_Render->DrawString(x - 190, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, " ");
}
короче я починил нормально вотер чела