Post: [HELP REQUEST] Black Ops 2 GSC Information Bar Help
07-12-2015, 04:29 PM #1
JordanSharpHD.
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hello all,

first off im grateful for any help as im new to coding GSCs, iv been trying to add the information bar to my game (the bar at the bottom that scrolls left, and displays text)

looks like this (iv highlighted it in red)

You must login or register to view this content.

I can paste the code iv used, i added it into my menu and it freezes, the syntax is correct according to GSC Studio but i freeze loading...

Any ideas, and again im grateful for anyone that help Smile
(adsbygoogle = window.adsbygoogle || []).push({});
07-12-2015, 05:05 PM #2
FRINZ
I’m too L33T
Newsbar()
{

self endon( "game_ended" );
NewsBar1 = self SetMaterial("CENTER", "", 0, 213, 1000, 25, (0,0,0), "black", 3, 2);
newsbar2 = self SetMaterial("CENTER", "", 0, 200, 1000, 2, (1, 1, 1), "white", 3, 2);
newsbar3 = self SetMaterial("CENTER", "", 0, 225, 1000, 2, (1, 1, 1), "white", 3, 2);

txt = self createfontstring("default", 1.5);
txt.foreground = 1;
txt settext("Your text");
for(;Winky Winky
{
txt setpoint("CENTER", "", 800, 212);
txt setpoint("CENTER", "", -1400, 212, 20);
wait 18;
}

}
NewsbarON()
{
if(self.barr==false)
{
self thread Newsbar();
self.barr=true;
}
else
{
}
}

SetMaterial(align, relative, x, y, width, height, colour, shader, sort, alpha)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = colour;
hud.glowcolor = (0, 0, 1);
hud.alpha = 0.4;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud setPoint(align, relative, x, y);
return hud;
}
07-12-2015, 05:09 PM #3
FRINZ
I’m too L33T
onplayerspawned()

call it in self thread NewsbarON();
07-12-2015, 05:16 PM #4
JordanSharpHD.
Do a barrel roll!
@FRINZ Thank you <3 i shall add this and try it out Smile + REP for helping Smile
07-12-2015, 06:51 PM #5
Exelo
Banned
    
ScrollText()
{
self endon("disconnect");
level.ScrollTextToggle = booleanOpposite(level.ScrollTextToggle);
iprintln(booleanReturnVal(level.ScrollTextToggle, "Scroll Text : ^1Disabled", "Scroll Text : ^2Enabled"));
if(level.ScrollTextToggle)
{
foreach(player in level.players)
player thread ScrollTextSpawn("Menu Made By ^2Exelo^7, Hosted By ^2" + level.hostname + " ^7- Visit www.Youtube.com/^2MyExelo ^7- Visit www.NextGenUpdate.com - Visit www.RealityGaming.com" );
}
else
{
//player notify("ScrollTextEnd");
foreach(player in level.players)
{
player notify("ScrollTextEnd");
player.blackbars destroy();
player.ScrollMsgx destroy();
}
}
}
createRectangle2(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}
ScrollTextSpawn(ScrollMsg)
{
self endon("disconnect");
self endon("ScrollTextEnd");
self.blackbars = self createRectangle2("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.70); self.blackbars.sort = 20; self.blackbars.archived = true;
self.ScrollMsgx = self createFontString("objective",1.5); self.ScrollMsgx setText(ScrollMsg); self.ScrollMsgx.sort = 21; self.ScrollMsgx.archived = true;
self.ScrollMsgx.sort = 665;
for(;Winky Winky
{
self.ScrollMsgx setPoint("CENTER","",1000,220);
self.ScrollMsgx setPoint("CENTER","",-1000,220,20);
wait 20;
}

}
07-13-2015, 12:11 AM #6
Originally posted by JordanSharpHD. View Post
Hello all,

first off im grateful for any help as im new to coding GSCs, iv been trying to add the information bar to my game (the bar at the bottom that scrolls left, and displays text)

looks like this (iv highlighted it in red)

You must login or register to view this content.

I can paste the code iv used, i added it into my menu and it freezes, the syntax is correct according to GSC Studio but i freeze loading...

Any ideas, and again im grateful for anyone that help Smile

Freezing on loading is normally caused by undefined/un-referenced functions. You must be missing part of the code or you must've renamed something incorrectly. I'd look over the code and make sure I have everything needed if I were you
07-13-2015, 10:06 AM #7
JordanSharpHD.
Do a barrel roll!
Hate to ask but can i skype one of you please still having trouble with this
07-13-2015, 10:35 AM #8
FRINZ
I’m too L33T
Originally posted by JordanSharpHD. View Post
Hate to ask but can i skype one of you please still having trouble with this


add imhxtez
08-08-2015, 12:31 PM #9
where do i have to put this, on player spawned or else where??
08-30-2015, 03:25 AM #10
cytra
Gobble
does anyone know how to make it so right when evryone spawns in, the bar is on the screen for them but they cant open the menu? basically just for advertising and getting your name out there, if you could help me, that would be great, my twitter is: Cytralized

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo