Question Message Function

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
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

Veteran
Messages
18
Reaction score
8
Points
568
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