mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-07 07:31:11 +00:00
IMPORTANT KNIVES FIX
This commit is contained in:
@@ -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('{'))
|
||||
|
||||
Reference in New Issue
Block a user