Question Message Function

Bananapie20

Known Member
Messages
18
Points
118
Does anybody know a function to make a message appear on screen for everybody
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,304
Points
548
Does anybody know a function to make a message appear on screen for everybody
Code:
iprintln( <message> )
iprintlnbold( <message> )
or
Code:
advertise( text )
{
    advertisement = createText("big", 1.5, "CENTER", "TOP", 0, 0, 1, 1, text, (1,1,1));
    // do more here
}

createText(font, fontScale, align, relative, x, y, sort, alpha, text, color)
{
    textElem = level createServerFontString(font, fontScale);
    textElem setPoint(align, relative, x, y);
    textElem.hideWhenInMenu = true;
    textElem.archived = false;
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem.color = color;
    textElem setText(text);
    return textElem;
}
 
Last edited:

Bananapie20

Known Member
Messages
18
Points
118
Code:
iprintln( <message> )
iprintlnbold( <message> )
or
Code:
advertise( text )
{
    advertisement = createText("big", 1.5, "CENTER", "TOP", 0, 0, 1, 1, text, (1,1,1))
    // do more here
}

createText(font, fontScale, align, relative, x, y, sort, alpha, text, color)
{
    textElem = level createServerFontString(font, fontScale);
    textElem setPoint(align, relative, x, y);
    textElem.hideWhenInMenu = true;
    textElem.archived = false;
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem.color = color;
    textElem setText(text);
    return textElem;
}
Thanks
 
Top