Update CS2-Tags.cs

This commit is contained in:
daffyyyy 2023-12-06 22:16:44 +01:00
parent 9fd605e863
commit 088f66694a

View file

@ -19,7 +19,7 @@ public class CS2_Tags : BasePlugin
public override string ModuleName => "CS2-Tags";
public override string ModuleDescription => "Add player tags easily in cs2 game";
public override string ModuleAuthor => "daffyy";
public override string ModuleVersion => "1.0.3";
public override string ModuleVersion => "1.0.3a";
public override void Load(bool hotReload)
{
@ -387,6 +387,7 @@ public class CS2_Tags : BasePlugin
foreach (var p in Utilities.GetPlayers().Where(p => p.TeamNum == player.TeamNum && p.IsValid && !p.IsBot))
{
string messageToSend = $"{deadIcon}{TeamName(player.TeamNum)} {ChatColors.Default}{prefix}{nickColor}{player.PlayerName}{ChatColors.Default}: {messageColor}{info.GetArg(1)}";
p.PrintToChat($" {ReplaceTags(messageToSend, p.TeamNum)}");
}
//p.PrintToChat(ReplaceTags($" {TeamName(player.TeamNum)} {ChatColors.Default}{prefix}{nickColor}{player.PlayerName}{ChatColors.Default}: {messageColor}{info.GetArg(1)}", p.TeamNum));