# This file can be used to define server macros in network games.
# You can define your own ini file with the command line
# option "-macros <yourmacros.ini>".

# The macros you define with Begin and End can be run with "/run Macro"

Begin Example
/say This is an example macro.
End

Begin ShowSettings
/tracks
/laps
/car
/ghostrace
/order
/points
End

# This macro is run every time a server is started (autoserver or normal).
# If you want to add remote admins (and understand the security risk),
# add lines like '/addadmin 127.0.0.1 HaRdPaSsWoRd' to the macro.
# Read README-autoserver.txt for more information. 
Begin ServerStart
End

# The following macros are automatically run in different
# situations when the server is in auto-server mode. 
# ServerStart macro is run before any of them.

Begin Reg
/autotime /raceend 5
/autotime /raceidle 60
/autotime /car 15
/say Automatic server starting a new cup.
/autotime /reg 45
/tracks /clear
/tracks /addrnd 10
/promode 1
End

Begin Cup
/autotime /cup 30
End

# This is run after Cup if the next track is a PunaBall track
# You can put punaball specific commands here. 
# (like /goals 5, /time 5 etc.)
Begin PunaBallCup
End

Begin RaceInit
/autotime /raceinit 45
End

Begin RaceEnd
End

#Not implemented yet
#Begin RaceIdle
#/say Players idling, quitting race.
#End

Begin CupEnd
/say The cup has ended. 
/autotime /cupend 45
End

