added some colouring to level up messages

This commit is contained in:
jenz 2026-07-05 15:39:25 +02:00
parent 05674446ae
commit 540cad9612

View File

@ -476,31 +476,31 @@ public bool check_if_client_new_tier(int client) //called every 10 minutes to fi
if (g_iRtvBoost_tier == g_iPlayerTier[client])
{
Format(new_rewards, sizeof(new_rewards), "%ix Mapvote/RTV/Nomination boost", g_iPlayerRTVCapacity);
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
if (FindConVar("sm_spraymanager_tier_required").IntValue == g_iPlayerTier[client])
{
Format(new_rewards, sizeof(new_rewards), "Spray access");
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
if (FindConVar("sm_entwatch_tier_requirement").IntValue == g_iPlayerTier[client])
{
Format(new_rewards, sizeof(new_rewards), "Item access");
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
if (FindConVar("mce_multiple_nominations_tier").IntValue == g_iPlayerTier[client])
{
Format(new_rewards, sizeof(new_rewards), "Multiple nominations");
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
if (g_GroupFlags[g_iPlayerTier[client]][0] != '\0' && StrEqual(g_GroupFlags[g_iPlayerTier[client]], "aop"))
{
Format(new_rewards, sizeof(new_rewards), "VIP");
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
if (g_GroupOverrides.GetString(g_GroupNames[g_iPlayerTier[client]], new_rewards, sizeof(new_rewards)))
{
PrintToChatAll("%N Leveled up to Tier %i and unlocked: %s", client, tier, new_rewards);
PrintToChatAll("\x03%N \x01Leveled up to Tier \x04%i\x01 and unlocked: \x04%s", client, tier, new_rewards);
}
upgrade_tier = true;
}