displaying items in tier features
This commit is contained in:
parent
927d55e64d
commit
de4155b758
@ -825,6 +825,9 @@ public void PrintClientGroupOverrides(int client)
|
|||||||
char spray_tier[32];
|
char spray_tier[32];
|
||||||
Format(spray_tier, sizeof(spray_tier), "tier%i", FindConVar("sm_spraymanager_tier_required").IntValue);
|
Format(spray_tier, sizeof(spray_tier), "tier%i", FindConVar("sm_spraymanager_tier_required").IntValue);
|
||||||
|
|
||||||
|
char entwatch_tier[32];
|
||||||
|
Format(entwatch_tier, sizeof(entwatch_tier), "tier%i", FindConVar("sm_entwatch_tier_requirement").IntValue);
|
||||||
|
|
||||||
int groupCount = GetAdminGroupCount(id);
|
int groupCount = GetAdminGroupCount(id);
|
||||||
for (int i = 0; i < groupCount; i++)
|
for (int i = 0; i < groupCount; i++)
|
||||||
{
|
{
|
||||||
@ -845,6 +848,11 @@ public void PrintClientGroupOverrides(int client)
|
|||||||
Format(entry, sizeof(entry), "%s: sprays", spray_tier);
|
Format(entry, sizeof(entry), "%s: sprays", spray_tier);
|
||||||
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
|
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
|
||||||
}
|
}
|
||||||
|
if (StrEqual(groupName, entwatch_tier))
|
||||||
|
{
|
||||||
|
Format(entry, sizeof(entry), "%s: items", entwatch_tier);
|
||||||
|
menu.AddItem("-1", entry, ITEMDRAW_DISABLED);
|
||||||
|
}
|
||||||
|
|
||||||
char overrides[512];
|
char overrides[512];
|
||||||
if (g_GroupOverrides.GetString(groupName, overrides, sizeof(overrides)))
|
if (g_GroupOverrides.GetString(groupName, overrides, sizeof(overrides)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user