(svn r6625) - Feature: Add the ability for servers to execute a script just after a client has connected, e.g. for a MOTD, etc.

This commit is contained in:
peter1138 2006-10-03 14:59:05 +00:00
parent ea63050d5f
commit b1457a1cfc
1 changed files with 3 additions and 0 deletions

View File

@ -954,6 +954,9 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_ACK)
DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
NetworkServer_HandleChat(NETWORK_ACTION_CHAT, DESTTYPE_BROADCAST, 0, "Game unpaused (client connected)", NETWORK_SERVER_INDEX);
}
/* Execute script for, e.g. MOTD */
IConsoleCmdExec("exec scripts/on_server_connect.scr 0");
}
// The client received the frame, make note of it