$ underrow $
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
C++:
void otheresp::spectators()
{
if (!g_cfg.esp.spectator_list)
return;
if (g_csgo.m_engine()->IsInGame() && g_csgo.m_engine()->IsConnected()) {
int index = 0;
int w, h;
g_csgo.m_engine()->GetScreenSize(w, h);
render::get().rect_filled(931, 141, 143, 18, Color(0, 0, 0, 155));
render::get().rect_filled(931, 141, 143, 2, Color(g_cfg.menu.menu_theme[0]));
render::get().text(fonts[rolexTEXT], 977, 144, Color(255, 255, 255), HFONT_OFF_SCREEN, "spectators");
for (int i = 1; i < 65; i++) {
auto p_local = static_cast<player_t*>(g_csgo.m_entitylist()->GetClientEntity(g_csgo.m_engine()->GetLocalPlayer()));
auto p_entity = static_cast<player_t*>(g_csgo.m_entitylist()->GetClientEntity(i));
player_info_t e_info;
if (p_entity && p_entity! = p_local) {
g_csgo.m_engine () -> GetPlayerInfo (i, & e_info);
if (! p_entity-> is_alive () &&! p_entity-> IsDormant ()) {
auto target = p_entity-> m_hObserverTarget ();
if (target) {
auto p_target = g_csgo.m_entitylist () -> GetClientEntityFromHandle (target);
if (p_target == p_local) {
int x, y;
g_csgo.m_surface () -> GetTextSize (fonts [ESPFLAG], to_wchar (e_info.szName), x, y);
std :: string player_name = e_info.szName;
player_info_t p_info;
g_csgo.m_engine () -> GetPlayerInfo (i, & e_info);
render :: get (). rect_filled (931, 141 + 20 + (20 * index), 143, 18, Color (0, 0, 0, 155));
render :: get (). text (fonts [rolexTEXT], 934, 163 + (20 * index), Color (255, 255, 255), HFONT_OFF_SCREEN, player_name.c_str ());
index ++;
}
}
}
}
}
}
} [/ CODE]
Вложения
-
5.3 KB Просмотры: 666