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_getTimeLimit
Jump to navigation
Jump to search
float bz_getTimeLimit ()
Retrieves the value of the time limit that was last set.
Returns:
The value of the last time limit.
Example
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;