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 resumeCountdown: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Sigonasr2 (talk | contribs)
Create API Function Page. Include Example.
 
(No difference)

Latest revision as of 09:36, 19 October 2011

void bz_resumeCountdown (const char* resumedBy)


Resumes the countdown that is currently paused.

Parameters:
resumedBy  -  The name of the player resuming the countdown. Note that this value does not have to be a callsign of a player in the server, it can be any string.


Example

Resume the countdown if a player unpauses, saying the player that unpaused decided to unpause the countdown also.

case bz_ePlayerPausedEvent:{
	if (!bz_isCountDownActive() && !((bz_PlayerPausedEventData_V1*)eventData)->pause) {
		bz_resumeCountdown(bz_getPlayerCallsign(((bz_PlayerPausedEventData_V1*)eventData)->playerID));
	}
}break;