mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-19 10:58:20 +00:00
1.2.8c
- Updated CounterStrikeSharp to 159 - Minor changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user