FS4
Відкрити в Telegram
Немає даних
Підписники
Немає даних24 години
+347 днів
+5630 днів
Архів дописів
0
void (*osub_4F7074)(unsigned char*, const char*, ...);
void hsub_4F7074(unsigned char* a1, const char* a2, ...)
{
if (!a2 ||
strstr(a2, "__ENABLE_MPRCS__") ||
strstr(a2, "__ACE_PRIVATE__") ||
strstr(a2, "__ACE_EXPORT__"))
return;
if (osub_4F7074)
osub_4F7074(a1, a2);
}
HOOK_LIB("libanogs.so", "0x4F7074", hsub_4F7074, osub_4F7074);//
🛑 10Year Fix ✔️
https://t.me/MILANWG0
// ===================================================================================
// عداد
g_LocalController = localController; // @Ss_Sy9 //
g_LocalPlayer = localPlayer; // @Ss_Sy9 //
float cx = glWidth * 0.5f; // @Ss_Sy9 //
// ================================
// الحجم
// ================================
float W = 160.0f;
float H = 48.0f;
float X1 = cx - (W * 0.5f); // @Ss_Sy9 //
float X2 = cx + (W * 0.5f); // @Ss_Sy9 //
// ================================
// الأحمر
// ================================
ImVec2 redMin(X1, 50.0f); // @Ss_Sy9 //
ImVec2 redMax(X2, 50.0f + H); // @Ss_Sy9 //
// ================================
// الأخضر
// ================================
float GreenY = 108.0f;
ImVec2 greenMin(X1, GreenY); // @Ss_Sy9 //
ImVec2 greenMax(X2, GreenY + H); // @Ss_Sy9 //
// ================================
// الألوان
// ================================
ImU32 Red = IM_COL32(255, 0, 0, 255);
ImU32 Green = IM_COL32(0, 255, 0, 255);
ImU32 Black = IM_COL32(0, 0, 0, 255);
ImU32 White = IM_COL32(255, 255, 255, 255);
// ================================
// الشكل
// ================================
float R = 5.0f;
float Border = 5.0f;
// ================================
// حجم الخط
// ================================
float fontSize = (float)density / 12.5f; // @Ss_Sy9 //
// ================================
// يوجد Players / Bots
// ================================
if (totalEnemies + totalBots > 0)
{
std::string s =
std::to_string((int)(totalEnemies + totalBots)); // @Ss_Sy9 //
// الخلفية الحمراء
draw->AddRectFilled(
redMin,
redMax,
Red,
R
);
// الإطار الأسود
draw->AddRect(
redMin,
redMax,
Black,
R,
0,
Border
);
// حجم النص
ImVec2 textSize =
ImGui::CalcTextSize2(
s.c_str(),
0,
fontSize
);
// الرقم بالمنتصف
draw->AddText(
nullptr,
fontSize,
ImVec2(
cx - (textSize.x * 0.5f),
50.0f + ((H - textSize.y) * 0.5f)
),
White,
s.c_str()
);
} // @Ss_Sy9 //
// ================================
// لا يوجد Players / Bots
// ================================
else
{
std::string s = "ﻥﺎﻣﺃ";
// الخلفية الخضراء
draw->AddRectFilled(
greenMin,
greenMax,
Green,
R
);
// الإطار الأسود
draw->AddRect(
greenMin,
greenMax,
Black,
R,
0,
Border
); // @Ss_Sy9 //
// حجم النص
ImVec2 textSize =
ImGui::CalcTextSize2(
s.c_str(),
0,
fontSize
); // @Ss_Sy9 //
// أمان بالمنتصف
draw->AddText(
nullptr,
fontSize,
ImVec2(
cx - (textSize.x * 0.5f),
GreenY + ((H - textSize.y) * 0.5f)
),
White,
s.c_str()
); // @Ss_Sy9 //
}
}
}
// ===================================================================================
عداد لاعبين مقدم من سجاد مود يوزر المصنع الي مشاكل = @Ss_Sy9
