From 8f4e205db0f2e341f3f0acb75f2ec3ce29d3374c Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 21 Jun 2026 14:31:59 +0200 Subject: [PATCH] printing tier rewards when player reaches new tier --- .../scripting/unloze_player_time.sp | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 6130fe2..98e3557 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -487,7 +487,36 @@ public bool check_if_client_new_tier(int client) //called every 10 minutes to fi } if (tier > g_iPlayerTier[client]) { - PrintToChatAll("%N Leveled up to Tier: %i!", client, tier); + char new_rewards[512]; + 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); + } + 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); + } + 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); + } + 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); + } + 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); + } + 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); + } upgrade_tier = true; }