Make Quiz Questions The Same for Each User

This commit is contained in:
SilicaAndPina 2021-04-16 11:30:52 +12:00
parent ccb3e4420a
commit 7a85eaac5d
6 changed files with 41 additions and 18 deletions

View file

@ -373,6 +373,12 @@ namespace HISP.Game.Chat
public static bool Quiz(string message, string[] args, User user)
{
bool quizActive = (GameServer.QuizEvent != null);
if(user.InRealTimeQuiz)
{
byte[] cantEnterRealTimeQuiz = PacketBuilder.CreateChat(Messages.EventAlreadyEnteredRealTimeQuiz, PacketBuilder.CHAT_BOTTOM_RIGHT);
user.LoggedinClient.SendPacket(cantEnterRealTimeQuiz);
return false;
}
if (quizActive)
{
string formattedmessage = Messages.FormatPlayerCommandCompleteMessage(message.Substring(1));