SAMOWARE-PROJECT
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Крч да,помогу пастерам сделать super gang watermark
Put it in menu.cpp or sdk.cpp
credits gh033ty beastcom74
Put it in menu.cpp or sdk.cpp
credits gh033ty beastcom74
C++:
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;
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";
if (interfaces.engine->IsConnected())
{
ss << "Instantmeme | " << name << " | " << outgoing << " ms | 64 tick" << " | " << currentDateTime().c_str();
auto textsize = Drawing::GetStringWidth(fonts::menu_main1, ss.str().c_str());
g_Render->FilledRect(x - 260, 7, textsize, 23, color_t(0, 0, 0, 150));
g_Render->FilledRect(x - 260, 7, textsize, 2, color_t(81, 137, 255, 255));
g_Render->DrawString(x - 250, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, ss.str().c_str());
}
else
{
ss << "Instantmeme | " << name << " | " << currentDateTime().c_str();
auto textsize2 = Drawing::GetStringWidth(fonts::menu_main1, ss.str().c_str());
g_Render->FilledRect(x - 200, 7, textsize2, 23, color_t(0, 0, 0, 150));
g_Render->FilledRect(x - 200, 7, textsize2, 2, color_t(81, 137, 255, 255));
g_Render->DrawString(x - 190, 11, color_t(255, 255, 255, 255), render::outline, fonts::menu_main, ss.str().c_str());
}
}
Последнее редактирование: