css_vote and small fixes
This commit is contained in:
parent
e6fb8bc402
commit
efd9ab5c22
6 changed files with 88 additions and 7 deletions
|
|
@ -3,6 +3,7 @@ using CounterStrikeSharp.API;
|
|||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using CounterStrikeSharp.API.Modules.Menu;
|
||||
|
||||
namespace CS2_SimpleAdmin
|
||||
{
|
||||
|
|
@ -99,5 +100,11 @@ namespace CS2_SimpleAdmin
|
|||
return message;
|
||||
}
|
||||
|
||||
internal static void handleVotes(CCSPlayerController player, ChatMenuOption option)
|
||||
{
|
||||
if (CS2_SimpleAdmin.VoteInProgress)
|
||||
CS2_SimpleAdmin.answers[option.Text]++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue