having same tier features on one line

This commit is contained in:
jenz 2026-06-21 12:56:06 +02:00
parent 58a5ea51a0
commit 131668a53d

View File

@ -698,37 +698,35 @@ public void PrintClientGroupOverrides(int client)
for (int i = 0; i < g_GroupNameCount; i++)
{
char entry[128];
char entry[512];
char overrides[512];
if (StrEqual(g_GroupNames[i], rtv_boost_tier))
{
Format(entry, sizeof(entry), "%s: %ix Mapvote/RTV/Nomination boost", g_GroupNames[i], g_iPlayerRTVCapacity);
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
Format(entry, sizeof(entry), "%s%s: %ix Mapvote/RTV/Nomination boost, ", entry, g_GroupNames[i], g_iPlayerRTVCapacity);
}
if (StrEqual(g_GroupNames[i], spray_tier))
{
Format(entry, sizeof(entry), "%s: Sprays", g_GroupNames[i]);
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
Format(entry, sizeof(entry), "%s%s: Sprays, ", entry, g_GroupNames[i]);
}
if (StrEqual(g_GroupNames[i], entwatch_tier))
{
Format(entry, sizeof(entry), "%s: Items", g_GroupNames[i]);
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
Format(entry, sizeof(entry), "%s%s: Items, ", entry, g_GroupNames[i]);
}
if (StrEqual(g_GroupNames[i], multi_nomination_tier))
{
Format(entry, sizeof(entry), "%s: Multiple nominations", g_GroupNames[i]);
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
Format(entry, sizeof(entry), "%s%s: Multiple nominations, ", entry, g_GroupNames[i]);
}
if (g_GroupFlags[i][0] != '\0' && StrEqual(g_GroupFlags[i], "aop"))
{
Format(entry, sizeof(entry), "%s: VIP", g_GroupNames[i]);
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
Format(entry, sizeof(entry), "%s%s: VIP, ", entry, g_GroupNames[i]);
}
if (g_GroupOverrides.GetString(g_GroupNames[i], overrides, sizeof(overrides)))
{
Format(entry, sizeof(entry), "%s: %s", g_GroupNames[i], overrides);
Format(entry, sizeof(entry), "%s%s: %s, ", entry, g_GroupNames[i], overrides);
}
if (strlen(entry) > 0)
{
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
}
}