bz_isCountDownActive

From BZFlagWiki
Jump to: navigation, search

bool bz_isCountDownActive ()


Retrieves whether or not the countdown is active. The countdown timer is active if the timer is continuing to go down every second.

Returns:
Whether or not the countdown timer is ticking down.


Example[edit]

Tell players that join that a match is in progress if they join while the countdown is active.

case bz_ePlayerJoinEvent: {
	if (bz_isCountDownActive()) {
	bz_sendTextMessage(BZ_SERVER,((bz_PlayerJoinPartEventData_V1*)eventData)->playerID,
		"Welcome! There is currently a timed match in progress.");}
}break;