Mercurial > hg > openttd
changeset 10963:2c08fb96fa17 draft
(svn r15302) -Add: example file for on_server_connect.scr and document it in the scripts readme
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 31 Jan 2009 23:50:53 +0000 |
parents | bcb22b063237 |
children | 4a3947e12b2c |
files | bin/scripts/on_server_connect.scr.example bin/scripts/readme.txt |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/bin/scripts/on_server_connect.scr.example @@ -0,0 +1,2 @@ +# Show a MOTD +say "Welcome..."
--- a/bin/scripts/readme.txt +++ b/bin/scripts/readme.txt @@ -10,6 +10,8 @@ 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]