This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

bz_isTimeManualStart

From BZFlagWiki
Jump to navigation Jump to search

bool bz_isTimeManualStart ()


Retrieves whether or not the time limit has to be started via a player issuing the /countdown command. The -timemanual BZFS option would make this return value true.

Returns:
True if the time limit requires manual startup or false if it is automatically running from the start.


Example

If a player joins and the timer requires manual starting, tell the user that.

case bz_ePlayerJoinEvent: {
	if (bz_isTimeManualStart()) {
	bz_sendTextMessage(BZ_SERVER,((bz_PlayerJoinPartEventData_V1*)eventData)->playerID,
		"Welcome! You can start the timer with /countdown at any time.");}
}break;