Notify if gagged or silenced

Notify if gagged or silenced. Merge it if you see any need
This commit is contained in:
asapverneri 2024-10-24 03:24:05 +03:00
parent b38b9a0751
commit 78db2feee8
14 changed files with 40 additions and 24 deletions

View file

@ -172,7 +172,10 @@ public partial class CS2_SimpleAdmin
return HookResult.Stop;
if (PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Gag) || PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Silence))
{
player.PrintToChat($"{_localizer!["sa_prefix"]} {_localizer!["sa_player_gag_active"]}");
return HookResult.Stop;
}
if (command == "say" && info.GetArg(1).StartsWith($"@") &&
AdminManager.PlayerHasPermissions(player, "@css/chat"))