;Event Timer Countdown

EventName=#PARAM1
TimeLeft=#PARAM2

If GetUserFlag(0,10) = 0
	SendMessageToAll("The "+EventName+" is canceled!",#MSG_SERVER)
	GoTo END
EndIf

If TimeLeft = 0
	SendMessageToAll("The "+EventName+" has started! You may no longer join. Good Luck!", #MSG_SERVER)
ElseIf TimeLeft = 1
	SendMessageToAll("The "+EventName+" will start in 30 seconds! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,30000,EventName, TimeLeft-1,0)
ElseIf TimeLeft = 2
	SendMessageToAll("The "+EventName+" will start in one minute! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,30000,EventName, TimeLeft-1,0)
ElseIf TimeLeft = 3
	SendMessageToAll("The "+EventName+" will start in two minutes! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,60000,EventName, TimeLeft-1,0)
ElseIf TimeLeft = 4
	SendMessageToAll("The "+EventName+" will start in three minute! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,60000,EventName, TimeLeft-1,0)
ElseIf TimeLeft = 5
	SendMessageToAll("The "+EventName+" will start in four minutes! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,60000,EventName, TimeLeft-1,0)
ElseIf TimeLeft = 6
	SendMessageToAll("The "+EventName+" will start in five minutes! Please report to the Event Center to participate.", #MSG_SERVER)
	Timer(517,60000,EventName, TimeLeft-1,0)
EndIf

Label END

Continue = 1