mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 02:41:55 +00:00
.
This commit is contained in:
@@ -58,7 +58,12 @@ namespace CS2_SimpleAdmin
|
||||
if (player == null || !player.IsValid || player.IsBot || player.IsHLTV) return;
|
||||
|
||||
if (gaggedPlayers.Contains((int)player.Index))
|
||||
gaggedPlayers.Remove((int)player.Index);
|
||||
{
|
||||
if (gaggedPlayers.TryTake(out int removedItem) && removedItem != (int)player.Index)
|
||||
{
|
||||
gaggedPlayers.Add(removedItem);
|
||||
}
|
||||
}
|
||||
|
||||
if (TagsDetected)
|
||||
NativeAPI.IssueServerCommand($"css_tag_unmute {player!.Index.ToString()}");
|
||||
|
||||
Reference in New Issue
Block a user