mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
Fixed gag
This commit is contained in:
parent
b1ab6e0e0d
commit
702a0315b8
2 changed files with 4 additions and 5 deletions
|
|
@ -151,10 +151,10 @@ public partial class CS2_SimpleAdmin
|
|||
return HookResult.Continue;
|
||||
|
||||
if (info.GetArg(1).Length == 0)
|
||||
return HookResult.Handled;
|
||||
|
||||
return HookResult.Stop;
|
||||
|
||||
if (PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Gag) || PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Silence))
|
||||
return HookResult.Handled;
|
||||
return HookResult.Stop;
|
||||
|
||||
if (command != "say_team" || !info.GetArg(1).StartsWith($"@")) return HookResult.Continue;
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ public partial class CS2_SimpleAdmin
|
|||
}
|
||||
}
|
||||
|
||||
return HookResult.Handled;
|
||||
return HookResult.Stop;
|
||||
}
|
||||
|
||||
/*public HookResult OnCommandSay(CCSPlayerController? player, CommandInfo info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue