Broadcast a message to all players[edit | edit source]

In general, use this function,

void MessageAll(string sMessage)
{
    object oPlayer = GetFirstPC();
    while(GetIsObjectValid(oPlayer))
        {
        SendMessageToPC(oPlayer,sMessage);
        oPlayer = GetNextPC();
        }
}
void main()
{
    MessageAll("Hello and Welcome to my Module");
}
Community content is available under CC-BY-SA unless otherwise noted.