mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-01 05:46:24 +00:00
Fixed server printing map instead of given weapon
This commit is contained in:
@@ -927,7 +927,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||||||
string weapon = command.GetArg(2);
|
string weapon = command.GetArg(2);
|
||||||
player.GiveNamedItem(weapon);
|
player.GiveNamedItem(weapon);
|
||||||
|
|
||||||
Server.PrintToChatAll(Helper.ReplaceTags($" {Config.Prefix} {Config.Messages.AdminChangeMap}".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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool GetTarget(CommandInfo command, out CCSPlayerController? player)
|
private static bool GetTarget(CommandInfo command, out CCSPlayerController? player)
|
||||||
|
|||||||
Reference in New Issue
Block a user