From 7ed5bf3675ffa08087ac970afd91ba92bd3d60df Mon Sep 17 00:00:00 2001 From: MSWS Date: Wed, 30 Oct 2024 19:22:47 -0700 Subject: [PATCH] Force white --- mod/Jailbreak.RTD/RTDRewarder.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/Jailbreak.RTD/RTDRewarder.cs b/mod/Jailbreak.RTD/RTDRewarder.cs index 711f609d..2478bd8b 100644 --- a/mod/Jailbreak.RTD/RTDRewarder.cs +++ b/mod/Jailbreak.RTD/RTDRewarder.cs @@ -1,8 +1,10 @@ -using CounterStrikeSharp.API; +using System.Drawing; +using CounterStrikeSharp.API; using CounterStrikeSharp.API.Core; using CounterStrikeSharp.API.Core.Attributes.Registration; using Jailbreak.Formatting.Views.Logging; using Jailbreak.Public.Behaviors; +using Jailbreak.Public.Extensions; using Jailbreak.Public.Mod.RTD; using Jailbreak.Public.Utils; @@ -36,6 +38,8 @@ public HookResult OnSpawn(EventPlayerSpawn @event, GameEventInfo info) { if (reward == null) return HookResult.Continue; if (!reward.CanGrantReward(player)) return HookResult.Continue; + player.SetColor(Color.White); + Server.RunOnTick(Server.TickCount + 2, () => { if (!player.IsValid) return; if (reward.Name != "Nothing")