bz_getTimeLimit

From BZFlagWiki
Jump to: navigation, search

float bz_getTimeLimit ()


Retrieves the value of the time limit that was last set.

Returns:
The value of the last time limit.


Example[edit]

Display time limit to user upon joining. Note that the -time BZFS option or bz_setTimeLimit() must be called for this to return a value other than 0.

case bz_ePlayerJoinEvent: {
	bz_sendTextMessagef(BZ_SERVER,((bz_PlayerJoinPartEventData_V1*)eventData)->playerID,
		"Welcome! The current countdown timer is set to %lf seconds!",bz_getTimeLimit());
}break;