diff --git a/Vote Banned/VoteBanned.cs b/Vote Banned/VoteBanned.cs index d0cd012..29e5f83 100644 --- a/Vote Banned/VoteBanned.cs +++ b/Vote Banned/VoteBanned.cs @@ -855,8 +855,9 @@ private void HandleMenuCT(CCSPlayerController Caller, ChatMenuOption option, int playersct.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; - Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; + Helper.AdvancedPrintToChat(player, Localizer["votebanned.announce.halfvotes.chat.message"]); }); } @@ -1034,8 +1035,9 @@ private void HandleMenuT(CCSPlayerController Caller, ChatMenuOption option, int playerst.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; - Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; + Helper.AdvancedPrintToChat(player, Localizer["votebanned.announce.halfvotes.chat.message"]); }); } @@ -1207,8 +1209,9 @@ private void HandleMenuALL(CCSPlayerController Caller, ChatMenuOption option, in playersall.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; - Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; + Helper.AdvancedPrintToChat(player, Localizer["votebanned.announce.halfvotes.chat.message"]); }); } diff --git a/Vote Kick/VoteKick.cs b/Vote Kick/VoteKick.cs index 9d9a0cb..f6fb4aa 100644 --- a/Vote Kick/VoteKick.cs +++ b/Vote Kick/VoteKick.cs @@ -851,7 +851,8 @@ private void HandleMenuCT(CCSPlayerController Caller, ChatMenuOption option, int playersct.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); }); } @@ -1030,7 +1031,8 @@ private void HandleMenuT(CCSPlayerController Caller, ChatMenuOption option, int playerst.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); }); } @@ -1202,7 +1204,8 @@ private void HandleMenuALL(CCSPlayerController Caller, ChatMenuOption option, in playerall.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteMute.VoteMute_ShowMenuCT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuT.ContainsKey(steamid) || Globals_VoteMute.VoteMute_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votekick.announce.halfvotes.chat.message"]); }); } diff --git a/Vote Mute/VoteMute.cs b/Vote Mute/VoteMute.cs index ab68fce..9b14254 100644 --- a/Vote Mute/VoteMute.cs +++ b/Vote Mute/VoteMute.cs @@ -775,7 +775,8 @@ private void HandleMenuCT(CCSPlayerController Caller, ChatMenuOption option, int playersct.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votemute.announce.halfvotes.chat.message"]); }); } @@ -968,7 +969,8 @@ private void HandleMenuT(CCSPlayerController Caller, ChatMenuOption option, int playerst.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votemute.announce.halfvotes.chat.message"]); }); } @@ -1152,7 +1154,8 @@ private void HandleMenuALL(CCSPlayerController Caller, ChatMenuOption option, in playerall.ForEach(player => { var steamid = player.SteamID; - if (Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteBanned.VoteBanned_ShowMenuCT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuT.ContainsKey(steamid) || Globals_VoteBanned.VoteBanned_ShowMenuBOTH.ContainsKey(steamid))return; + if(Globals_VoteKick.VoteKick_ShowMenuCT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuT.ContainsKey(steamid) || Globals_VoteKick.VoteKick_ShowMenuBOTH.ContainsKey(steamid))return; Helper.AdvancedPrintToChat(player, Localizer["votemute.announce.halfvotes.chat.message"]); }); } diff --git a/Vote-GoldKingZ.cs b/Vote-GoldKingZ.cs index 47f6388..d906906 100644 --- a/Vote-GoldKingZ.cs +++ b/Vote-GoldKingZ.cs @@ -13,7 +13,7 @@ namespace Vote_GoldKingZ; public class VoteGoldKingZ : BasePlugin { public override string ModuleName => "Vote (Kick , Mute , Banned, Vips)"; - public override string ModuleVersion => "1.0.3"; + public override string ModuleVersion => "1.0.4"; public override string ModuleAuthor => "Gold KingZ"; public override string ModuleDescription => "https://github.com/oqyh";