Post: GSC Newsbar code
04-22-2015, 03:12 PM #1
ModyHacker
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); Ye... noob qeustion but i havent coded GSC in a while and i cant seem to get the code anywhere :|
(adsbygoogle = window.adsbygoogle || []).push({});
04-22-2015, 08:12 PM #2
iiiCenTurY
Gym leader
I have it like this
    doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;
self.bar.alpha = 0.45;
self.txt = self createFontString("objective",1.Cool Man (aka Tustin);
self.txt.foreGround = true;
self.txt setText(text);
for(;Winky Winky
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,220);
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

createRectangle(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;
}

beginNewsBars()
{
self endon("stop_Fuck");

self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY ^7 || ^5Open: [{+actionslot 1}] ^7|| ^5Scroll: [{+attack}] & [{+speed_throw}] ^7|| ^5Select: [{+gostand}] ^7|| ^5Exit: [{+melee}] ");
}


It should work, I think Smile

The following 3 users say thank you to iiiCenTurY for this useful post:

BullyWiiPlaza, Coffee Bean, ModyHacker
04-22-2015, 08:15 PM #3
Originally posted by iiiCenTurY View Post
I have it like this
    doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;
self.bar.alpha = 0.45;
self.txt = self createFontString("objective",1.Cool Man (aka Tustin);
self.txt.foreGround = true;
self.txt setText(text);
for(;Winky Winky
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,220);
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

createRectangle(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;
}

beginNewsBars()
{
self endon("stop_Fuck");

self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY ^7 || ^5Open: [{+actionslot 1}] ^7|| ^5Scroll: [{+attack}] & [{+speed_throw}] ^7|| ^5Select: [{+gostand}] ^7|| ^5Exit: [{+melee}] ");
}


It should work, I think Smile


Yep it works thanks dude i too was looking for this Happy
04-22-2015, 08:17 PM #4
iiiCenTurY
Gym leader
Originally posted by Haxman2580 View Post
Yep it works thanks dude i too was looking for this Happy


np Smile
04-23-2015, 08:04 AM #5
ModyHacker
Gym leader
Originally posted by iiiCenTurY View Post
I have it like this
    doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;
self.bar.alpha = 0.45;
self.txt = self createFontString("objective",1.Cool Man (aka Tustin);
self.txt.foreGround = true;
self.txt setText(text);
for(;Winky Winky
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,220);
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

createRectangle(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;
}

beginNewsBars()
{
self endon("stop_Fuck");

self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY ^7 || ^5Open: [{+actionslot 1}] ^7|| ^5Scroll: [{+attack}] & [{+speed_throw}] ^7|| ^5Select: [{+gostand}] ^7|| ^5Exit: [{+melee}] ");
}


It should work, I think Smile


thanks bro Happy
05-30-2015, 03:39 AM #6
Do i have To Put an Function to get the newsbar Started or Just Add The Code in and The news bar will start it self?
07-22-2015, 10:03 PM #7
oVyzor
Save Point
You just put in on your onPlayerSpawned thread.
10-30-2015, 04:22 PM #8
bruh is ther a on/off for this?
03-27-2016, 04:13 AM #9
Yea figure it out.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo