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_isCountDownInProgress
Jump to navigation
Jump to search
bool bz_isCountDownInProgress ()
Retrieves whether or not the countdown to the start of the match is occurring.
Returns:
Whether or not the match is going to start.
Example
Kick a player if they join when a match is about to start and they are not an observer.
case bz_eAllowPlayer: {
if (bz_isCountDownInProgress() && bz_getPlayerTeam(((bz_AllowPlayerEventData_V1*)eventData)->playerID)!=eObservers) {
((bz_AllowPlayerEventData_V1*)eventData)->allow=false;
((bz_AllowPlayerEventData_V1*)eventData)->reason="Sorry! A match is about to start.";
}
}break;