mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 12:57:04 +02: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:
parent
67ad1851bf
commit
e028bef5b0
3 changed files with 88 additions and 225 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue