https://wiki.bzflag.org/index.php?title=Bz_isCountDownInProgress&feed=atom&action=historyBz isCountDownInProgress - Revision history2024-03-29T06:08:37ZRevision history for this page on the wikiMediaWiki 1.26.3https://wiki.bzflag.org/index.php?title=Bz_isCountDownInProgress&diff=8071&oldid=prevSigonasr2: Create API Function Page. Include Example.2011-10-19T09:27:59Z<p>Create API Function Page. Include Example.</p>
<p><b>New page</b></p><div>{{apicall<br />
| name = bz_isCountDownInProgress<br />
| returns = Whether or not the match is going to start.<br />
| returntype = bool<br />
| description = Retrieves whether or not the countdown to the start of the match is occurring.<br />
}}<br />
<br />
===Example===<br />
Kick a player if they join when a match is about to start and they are not an observer.<br />
case bz_eAllowPlayer: {<br />
if (bz_isCountDownInProgress() && bz_getPlayerTeam(((bz_AllowPlayerEventData_V1*)eventData)->playerID)!=eObservers) {<br />
((bz_AllowPlayerEventData_V1*)eventData)->allow=false;<br />
((bz_AllowPlayerEventData_V1*)eventData)->reason="Sorry! A match is about to start.";<br />
}<br />
}break;</div>Sigonasr2