<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_startCountdown</id>
	<title>Bz startCountdown - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_startCountdown"/>
	<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_startCountdown&amp;action=history"/>
	<updated>2026-04-06T14:23:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.bzflag.org/index.php?title=Bz_startCountdown&amp;diff=8075&amp;oldid=prev</id>
		<title>Sigonasr2: Create API Function Page. Include Example.</title>
		<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_startCountdown&amp;diff=8075&amp;oldid=prev"/>
		<updated>2011-10-19T09:43:37Z</updated>

		<summary type="html">&lt;p&gt;Create API Function Page. Include Example.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{apicall&lt;br /&gt;
| name          = bz_startCountdown&lt;br /&gt;
| returns       = &lt;br /&gt;
| returntype    = void&lt;br /&gt;
| description   = Begins the starting countdown process as if a player were to type &amp;#039;&amp;#039;&amp;#039;/countdown&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
| param1      = delay&lt;br /&gt;
| param1type  = int&lt;br /&gt;
| param1desc  = How many seconds to countdown before the real countdown timer for the match starts.&lt;br /&gt;
| param2      = limit&lt;br /&gt;
| param2type  = float&lt;br /&gt;
| param2desc  = How many seconds to set the countdown timer to? (Basically, setting the match length.)&lt;br /&gt;
| param3      = byWho&lt;br /&gt;
| param3type  = const char*&lt;br /&gt;
| param3desc  = The name of the player starting the countdown. Note that the name displayed does not have to be a player in the server, it can be any string.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
Once 4 players have joined, the countdown will automatically begin by SERVER using the default time limit set by the server with a 10 second starting delay.&lt;br /&gt;
 case bz_ePlayerJoinEvent: {&lt;br /&gt;
 	if (bz_getTeamCount(eBlueTeam)+&lt;br /&gt;
 		bz_getTeamCount(eRedTeam)+&lt;br /&gt;
 		bz_getTeamCount(eRogueTeam)+&lt;br /&gt;
 		bz_getTeamCount(eGreenTeam)+&lt;br /&gt;
 		bz_getTeamCount(ePurpleTeam)&amp;gt;=4 &amp;amp;&amp;amp;&lt;br /&gt;
 		(!bz_isCountDownActive() || !bz_isCountDownInProgress)) {&lt;br /&gt;
 		bz_sendTextMessage(BZ_SERVER,BZ_ALLUSERS,&amp;quot;Enough players have joined, starting countdown.&amp;quot;);&lt;br /&gt;
 		bz_startCountdown(10,bz_getTimeLimit(),&amp;quot;SERVER&amp;quot;);&lt;br /&gt;
 	}&lt;br /&gt;
 }break;&lt;/div&gt;</summary>
		<author><name>Sigonasr2</name></author>
	</entry>
</feed>