IMPORTANT KNIVES FIX

This commit is contained in:
daffyyyy
2023-11-26 15:16:01 +01:00
parent fe5cc9a82a
commit 7bb97af619
2 changed files with 82 additions and 48 deletions

View File

@@ -1,4 +1,6 @@
using CounterStrikeSharp.API.Modules.Utils;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Modules.Entities;
using CounterStrikeSharp.API.Modules.Utils;
using System.Reflection;
namespace WeaponPaints
@@ -7,6 +9,11 @@ namespace WeaponPaints
{
public static WeaponPaintsConfig? Config { get; set; }
public static bool IsPlayerValid(CCSPlayerController? player)
{
return (player != null && player.IsValid && !player.IsBot && !player.IsHLTV);
}
public static string ReplaceTags(string message)
{
if (message.Contains('{'))