1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
|
matchStartTimer()
{
visionSetNaked( "mpIntro", 0 );
matchStartText = createServerFontString( "objective", 1.5 );
matchStartText setPoint( "CENTER", "CENTER", 0, -20 );
matchStartText.sort = 1001;
matchStartText setText( game["strings"]["waiting_for_teams"] );
matchStartText.foreground = false;
matchStartText.hidewheninmenu = true;
matchStartTimer = createServerTimer( "objective", 1.4 );
matchStartTimer setPoint( "CENTER", "CENTER", 0, 0 );
matchStartTimer setTimer( level.prematchPeriod );
matchStartTimer.sort = 1001;
matchStartTimer.foreground = false;
matchStartTimer.hideWhenInMenu = true;
waitForPlayers( level.prematchPeriod );
if ( level.prematchPeriodEnd > 0 )
{
matchStartText setText( game["strings"]["match_starting_in"] );
matchStartTimer setTimer( level.prematchPeriodEnd );
wait level.prematchPeriodEnd;
}
visionSetNaked( getDvar( "mapname" ), 2.0 );
matchStartText destroyElem();
matchStartTimer destroyElem();
}
|