Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oqyh committed Mar 28, 2024
1 parent d6476e7 commit 5e2666c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
15 changes: 9 additions & 6 deletions Vote Banned/VoteBanned.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
}

Expand Down Expand Up @@ -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"]);
});
}

Expand Down Expand Up @@ -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"]);
});
}

Expand Down
9 changes: 6 additions & 3 deletions Vote Kick/VoteKick.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
}
Expand Down Expand Up @@ -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"]);
});
}
Expand Down Expand Up @@ -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"]);
});
}
Expand Down
9 changes: 6 additions & 3 deletions Vote Mute/VoteMute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
}
Expand Down Expand Up @@ -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"]);
});
}
Expand Down Expand Up @@ -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"]);
});
}
Expand Down
2 changes: 1 addition & 1 deletion Vote-GoldKingZ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 5e2666c

Please sign in to comment.