Question Message Function

Discussion in 'GSC Section Questions' started by Bananapie20, Oct 21, 2017.

  1. Bananapie20

    Bananapie20 Member

    16
    8
    118
    Credits:
    194
    Does anybody know a function to make a message appear on screen for everybody
     
  2. candy

    candy G59 Terrorist Donator

    1,086
    724
    398
    Credits:
    5,955
    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: Oct 21, 2017
  3. Bananapie20

    Bananapie20 Member

    16
    8
    118
    Credits:
    194
    Thanks
     

Share This Page