1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Message Function

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

  1. Bananapie20

    Bananapie20 Member

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

    Candy G59 Terrorist Donator

    1,005
    686
    398
    Credits:
    5,526
    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:
    193
    Thanks
     

Share This Page