mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
fixed writing player name after giving waepon in chat
This commit is contained in:
parent
b8048e1500
commit
dbdefa8168
1 changed files with 1 additions and 1 deletions
|
|
@ -927,7 +927,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||
string weapon = command.GetArg(2);
|
||||
player.GiveNamedItem(weapon);
|
||||
|
||||
Server.PrintToChatAll(Helper.ReplaceTags($" {Config.Prefix} {Config.Messages.AdminGiveMessage}".Replace("{ADMIN}", caller?.PlayerName == null ? "Console" : caller.PlayerName).Replace("{WEAPON}", weapon)));
|
||||
Server.PrintToChatAll(Helper.ReplaceTags($" {Config.Prefix} {Config.Messages.AdminGiveMessage}".Replace("{ADMIN}", caller?.PlayerName == null ? "Console" : caller.PlayerName).Replace("{WEAPON}", weapon.Split("_")[1])).Replace("{PLAYER}",player.PlayerName));
|
||||
}
|
||||
|
||||
private static bool GetTarget(CommandInfo command, out CCSPlayerController? player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue