Answered Black Ops 2 Zombie GSC - How can I create a welcome message?

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
hello does anyone know how to make a welcome mssg for a bo2 zombie menu that shows up in the middle above on the screen when you spawned in the map
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
hello does anyone know how to make a welcome mssg for a bo2 zombie menu that shows up in the middle above on the screen when you spawned in the map
Just do a text element...
 

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
i did this but it dont show up

self thread welcomeMessage();


Code:
welcomeMessage()
{
    notifyData = spawnstruct();
    notifyData.titleText = "Menu Name";
    notifyData.notifyText = "^2Status: " + verificationToColor(player.status);
    notifyData.glowColor = (0,0,0);
    notifyData.duration = 15;
    notifyData.font = "hudbig";
    notifyData.hideWhenInMenu = false;
    self thread maps\mp\gametypes_zm\_hud_message::notifyMessage(notifyData);
}
 
Last edited by a moderator:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
i did this but it dont show up

self thread welcomeMessage();


Code:
welcomeMessage()
{
    notifyData = spawnstruct();
    notifyData.titleText = "Menu Name";
    notifyData.notifyText = "^2Status: " + verificationToColor(player.status);
    notifyData.glowColor = (0,0,0);
    notifyData.duration = 15;
    notifyData.font = "hudbig";
    notifyData.hideWhenInMenu = false;
    self thread maps\mp\gametypes_zm\_hud_message::notifyMessage(notifyData);
}
Clearly not what I was talking about.

Please, Log in or Register to view URLs content!
What @Candy is telling you is that you have to create a own text element for your welcome message.

For example, here is my welcome message script from the tfs project:

PrintMessageToEntry
PrintMessageToEntry(<string>, <timeplus (int)>)

Usage
self PrintMessageToEntry("Message to Print");

If you leave <timeplus (int)> empty, it won't display longer.

Example:
self PrintMessageToEntry("Created by CabCon");

Functions to copy inside of your project:
Code:
PrintMessageToEntry(String,timeplus)
{
    if(!isDefined(level.message_spwan))
    {
        level.message_spwan = spawnstruct();
        level.message_spwan = self createText(1.5, 5, String, "CENTER", "CENTER", 0, -120, 1);
        level.message_spwan.glow = true;
        level.message_spwan.glowColor = (1,1,1);
        level.message_spwan.hideWhenInMenu = true;
        level.message_spwan setCOD7DecodeFX( 100, int(10*1000), 600 );
        level.message_spwan setPulseFX( 100, int(10*1000), 1000 );
        if(isEmpty(timeplus))
            timeplus = 0;
        //L(String.size+" | Print Duration : "+(3+(String.size/10*3))+timeplus);
        wait 3+(String.size/3)+timeplus;
        level.message_spwan affectElement("alpha", 1, 0);
        wait 1;
        level.message_spwan clear(self);
        level.message_spwan = undefined;
        self notify("MessageSpawnNew");
        //L("PrintMessageToEntry() say --> notify MessageSpawnNew");
    }
    else
    {
        //L("PrintMessageToEntry() say --> waittill for MessageSpawnNew");
        self waittill("MessageSpawnNew");
        self PrintMessageToEntry(String);
    }
}

isEmpty(var)
{
    if(var == "" || !isDefined(var))
        return true;
    else
        return false;
}

createText(fontSize, sorts, text, align, relative, x, y, alpha, color)
{
    uiElement = self createfontstring("default", fontSize);
    uiElement setPoint(align, relative, x, y);
    uiElement settext(text);
    uiElement.sort = sorts;
    uiElement.hideWhenInMenu = true;
    if( isDefined(alpha) )
        uiElement.alpha = alpha;
        uiElement.color = (1,1,1);
     //Overflow fix
     //uiElement.type = "text";
      //addTextTableEntry(uiElement, getStringId(text));
      //uiElement setSafeText(self, text);
    return uiElement;
}
 

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
how to get the color like the bo2 sentinel mod menu that it glows but then purple
 

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
i did but i dont get the glow

like this i mean
 

Attachments

  • sentinel.jpg
    sentinel.jpg
    76.3 KB · Views: 576
Top