mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-17 10:31:00 +00:00
16 lines
401 B
C#
16 lines
401 B
C#
using CounterStrikeSharp.API.Core;
|
|
using System.Text;
|
|
|
|
namespace WeaponPaints;
|
|
|
|
public static class PlayerExtensions
|
|
{
|
|
public static void Print(this CCSPlayerController controller, string message)
|
|
{
|
|
if (WeaponPaints._localizer == null) return;
|
|
|
|
StringBuilder _message = new(WeaponPaints._localizer["wp_prefix"]);
|
|
_message.Append(message);
|
|
controller.PrintToChat(_message.ToString());
|
|
}
|
|
} |