mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-22 11:42:26 +00:00
1.2.8d
- Minor changes - Added the ability to change the map to a workshop map via the `css_map ws:id/name` command - Fixed the `css_wsmap` command and retained it for backward compatibility - Changed gags from userid to steamid
This commit is contained in:
@@ -174,11 +174,11 @@ namespace CS2_SimpleAdmin
|
||||
|
||||
if (muteType == "GAG")
|
||||
{
|
||||
if (!CS2_SimpleAdmin.gaggedPlayers.Any(index => index == player.UserId))
|
||||
CS2_SimpleAdmin.gaggedPlayers.Add((ushort)player.UserId);
|
||||
if (!CS2_SimpleAdmin.gaggedPlayers.Any(steamid => steamid == player.SteamId!.ToString()))
|
||||
CS2_SimpleAdmin.gaggedPlayers.Add(player.SteamId!.ToString());
|
||||
|
||||
if (CS2_SimpleAdmin.TagsDetected)
|
||||
NativeAPI.IssueServerCommand($"css_tag_mute {player!.UserId}");
|
||||
NativeAPI.IssueServerCommand($"css_tag_mute {player!.SteamId!.ToString()}");
|
||||
|
||||
/*
|
||||
CCSPlayerController currentPlayer = player;
|
||||
|
||||
Reference in New Issue
Block a user