Bananapie20
Veteran
- Messages
- 18
- Reaction score
- 8
- Points
- 568
Does anybody know a function to make a message appear on screen for everybody
Does anybody know a function to make a message appear on screen for everybody
iprintln( <message> )
iprintlnbold( <message> )
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;
}
ThanksorCode:iprintln( <message> ) iprintlnbold( <message> )
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; }