mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-18 18:49:21 +00:00
21 lines
535 B
C#
21 lines
535 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)
|
|
{
|
|
controller.PrintToChat(message);
|
|
}
|
|
else
|
|
{
|
|
StringBuilder _message = new(WeaponPaints._localizer["wp_prefix"]);
|
|
_message.Append(message);
|
|
controller.PrintToChat(_message.ToString());
|
|
}
|
|
}
|
|
} |