diff --git a/bin/scripts/on_server_connect.scr.example b/bin/scripts/on_server_connect.scr.example new file mode 100644 index 0000000000..233cf1b4e2 --- /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 2927dcdcbb..8f13e74e98 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]