This wiki is archived and useful information is being migrated to the main bzflag.org website
bz_getTimeLimit
From BZFlagWiki
Revision as of 09:15, 19 October 2011 by Sigonasr2 (Talk | contribs) (Create API Function Page. Include Example.)
float bz_getTimeLimit ()
Retrieves the value of the time limit that was last set.
Returns:
The value of the last time limit.
Example[edit]
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;