diff --git a/mod/Jailbreak.RTD/RTDRewarder.cs b/mod/Jailbreak.RTD/RTDRewarder.cs index 711f609..2478bd8 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")