Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
#include maps\_hud_util;
main()
{
flag_wait("all_players_connected");
level.welcome = self createText("Welcome to my map.", "center", "top", "center", "top", (0, 1, 1), -1, 75, 3.5, 1);
wait 3;
self moveElem(level.welcome, 5, 1000, 70); // replace 5 with the time in seconds it takes for the text to move
}
//===========================
//== Generic Functions ==
//===========================
createText(text, xalign, yalign, halign, valign, colour, x, y, fsize, alpha)
{
customText = create_simple_hud();
customText.alignX = xalign;
customText.alignY = yalign;
customText.horzAlign = halign;
customText.vertAlign = valign;
customText.x = x;
customText.y = y;
customText.foreground = 5;
customText.fontscale = fsize;
customText.alpha = alpha;
customText.color = colour;
customText SetText(text);
return customText;
}
moveElem(elem, time, x, y)
{
elem moveOverTime(time);
elem.x = x;
elem.y = y;
}
createText(text, xalign, yalign, halign, valign, colour, x, y, fsize, alpha)
{
customText = create_simple_hud();
customText.alignX = xalign;
customText.alignY = yalign;
customText.horzAlign = halign;
customText.vertAlign = valign;
customText.x = x;
customText.y = y;
customText.foreground = 5;
customText.fontscale = fsize;
customText.alpha = alpha;
customText.color = colour;
customText SetText(text);
return customText;
}
moveElem(elem, time, x, y)
{
elem moveOverTime(time);
elem.x = x;
elem.y = y;
}
maps\_welcome::main(); // replace _welcome with the name of your custom gsc file
level.welcome = self createText("Welcome to my map.", "center", "top", "center", "top", (0, 1, 1), -1, 75, 3.5, 1);
wait 3;
self moveElem(level.welcome, 5, 1000, 70); // replace 5 with the time in seconds it takes for the text to move