- Fixed crashing on servers with a lot of players
- Every command chat message respect player language for now css_lang or use https://github.com/aprox2/GeoLocationLanguageManagerPlugin to detect language related on player ip
- Fixed css_respawn
- Fixed css_vote player can't vote multiple times
- Added TeamSwitchType to config, if set to 0 plugin always slay player on css_team command
- Minor changes
This commit is contained in:
Dawid Bepierszcz
2024-02-04 13:25:15 +01:00
parent 93faad27c1
commit 131030a2cd
11 changed files with 687 additions and 623 deletions

View File

@@ -116,7 +116,7 @@ namespace CS2_SimpleAdmin
public static void KickPlayer(ushort userId, string? reason = null)
{
NativeAPI.IssueServerCommand($"kickid {userId} {reason}");
Server.ExecuteCommand($"kickid {userId} {reason}");
}
public static void PrintToCenterAll(string message)
@@ -148,8 +148,12 @@ namespace CS2_SimpleAdmin
internal static void handleVotes(CCSPlayerController player, ChatMenuOption option)
{
if (CS2_SimpleAdmin.voteInProgress)
if (CS2_SimpleAdmin.voteInProgress && !CS2_SimpleAdmin.votePlayers.Contains(player.Slot))
{
CS2_SimpleAdmin.votePlayers.Add(player.Slot);
CS2_SimpleAdmin.voteAnswers[option.Text]++;
option.Disabled = true;
}
}
}
}