- Updated CounterStrikeSharp to 159
- Minor changes
This commit is contained in:
Dawid Bepierszcz
2024-01-26 13:45:16 +01:00
parent e584316a28
commit 67ad1851bf
3 changed files with 16 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ public partial class CS2_SimpleAdmin
RegisterEventHandler<EventRoundStart>(OnRoundStart);
AddCommandListener("say", OnCommandSay);
AddCommandListener("say_team", OnCommandTeamSay);
AddCommandListener("callvote", OnCommandCallVote);
//AddCommandListener("callvote", OnCommandCallVote);
}
/*private HookResult OnPlayerFullConnect(EventPlayerConnectFull @event, GameEventInfo info)
@@ -202,7 +202,7 @@ public partial class CS2_SimpleAdmin
if (player != null && player.UserId != null && gaggedPlayers.Contains((ushort)player.UserId))
{
if (gaggedPlayers.TryTake(out ushort removedItem) && removedItem != (int)player.UserId)
if (gaggedPlayers.TryTake(out ushort removedItem) && removedItem != (ushort)player.UserId)
{
gaggedPlayers.Add(removedItem);
}