-
Автор темы
- #1
Preview:
client.cpp:
std::string Client::comp_name() {
char buff[MAX_PATH];
GetEnvironmentVariableA("USERNAME", buff, MAX_PATH);
return std::string(buff);
}
void Client::DrawHUD() {
if( !g_csgo.m_engine->IsInGame( ) )
return;
std::string username = comp_name();
std::string build = tfm::format(XOR("stable"));
if (username == ("Mula"))
build = tfm::format(XOR("dev"));
Color color = g_menu.main.config.menu_color.get();
std::string cheat = ("corolla [" + build + "]");
render::FontSize_t sizecheatname = render::hud.size(cheat);
render::rect_filled(2, 10, sizecheatname.m_width + 4, sizecheatname.m_height + 2, { 12, 12, 12, 200 });
render::rect_filled(0, 10, 2, sizecheatname.m_height + 2, color);
render::hud.string(4, 10, { 255,255,255,255 }, cheat, render::ALIGN_LEFT);
}
render.cpp:
hud = Font( XOR( "Tahoma" ), 12, FW_NORMAL, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
Последнее редактирование: