16 lines
517 B
Plaintext
16 lines
517 B
Plaintext
// Called on the module's OnEnter event.
|
|
// Will display the currently set Message of the Day or MOTD to any players that enter the server.
|
|
|
|
#include "colors_inc"
|
|
#include "aps_include"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
object oModule = OBJECT_SELF;
|
|
string sMOTD = GetLocalString(oModule, "MOTD");
|
|
string sMessage = ColorTokenGreen() + "Welcome to Resident Evil Online!\n\nMOTD: " + ColorTokenWhite() + sMOTD + ColorTokenEnd();
|
|
|
|
DelayCommand(6.5, SendMessageToPC(oPC, sMessage));
|
|
}
|