Update CS2-SimpleAdmin.cs

This commit is contained in:
daffyyyy
2023-12-12 19:51:39 +01:00
parent efd9ab5c22
commit d677551463

View File

@@ -1193,6 +1193,8 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
if (command.GetArg(1) == null || command.GetArg(1).Length < 0 || command.ArgCount < 2)
return;
answers.Clear();
string question = command.GetArg(1);
int answersCount = command.ArgCount;
@@ -1229,7 +1231,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
sb.Append(_localizer["sa_admin_vote_message_results_answer", kvp.Key, kvp.Value]);
Server.PrintToChatAll(sb.ToString());
}
answers.Clear();
VoteInProgress = false;
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);