mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Make Quiz Questions The Same for Each User
This commit is contained in:
parent
ccb3e4420a
commit
7a85eaac5d
6 changed files with 41 additions and 18 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue