mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-11-29 12:37:04 +01:00
Notify if gagged or silenced
Notify if gagged or silenced. Merge it if you see any need
This commit is contained in:
parent
b38b9a0751
commit
78db2feee8
14 changed files with 40 additions and 24 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue