summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-31 23:50:53 +0000
committerrubidium <rubidium@openttd.org>2009-01-31 23:50:53 +0000
commiteb505888eab2736f66b0bf4649d3869dc3fd5ea9 (patch)
tree1369877b5da3c4bf69c94b51ea9fbc58a8bc07a9 /bin
parentb3f3df76e8c2a2fffad6c392dc83706b9ccbdc01 (diff)
downloadopenttd-eb505888eab2736f66b0bf4649d3869dc3fd5ea9.tar.xz
(svn r15302) -Add: example file for on_server_connect.scr and document it in the scripts readme
Diffstat (limited to 'bin')
-rw-r--r--bin/scripts/on_server_connect.scr.example2
-rw-r--r--bin/scripts/readme.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/scripts/on_server_connect.scr.example b/bin/scripts/on_server_connect.scr.example
new file mode 100644
index 000000000..233cf1b4e
--- /dev/null
+++ b/bin/scripts/on_server_connect.scr.example
@@ -0,0 +1,2 @@
+# Show a MOTD
+say "Welcome..."
diff --git a/bin/scripts/readme.txt b/bin/scripts/readme.txt
index 2927dcdcb..8f13e74e9 100644
--- a/bin/scripts/readme.txt
+++ b/bin/scripts/readme.txt
@@ -10,6 +10,8 @@ local scripts:
should be used to set client optimization settings:
- 'on_client.scr' is executed when you join a server [all clients]
+ - 'on_server_connect.scr' is executed on the server when a client has joined (MOTD)
+
should be used to set the servers port/ip and/or server optimization settings/patches:
- 'pre_server.scr' is executed before the servers tcp stack is started [in-game only]
- 'pre_dedicated.scr' is executed before the servers tcp stack is started [dedicated only]