Post: Please Help! Thanks :)
09-11-2015, 02:42 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I was wondering on how to add a information bar at the bottom of your screen in a mod menu ? If anyone has the gsc function and can help me much thanks to you.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked aliashrafa for this useful post:

Maverick
09-11-2015, 03:44 PM #2
Humble
Little One
Originally posted by aliashrafa View Post
I was wondering on how to add a information bar at the bottom of your screen in a mod menu ? If anyone has the gsc function and can help me much thanks to you.


You mean a news bar?


//News Bar
doNewsBar(text, glowColor, glowAlpha)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.txt = self createFontString("objective",1.;
self.txt.foreGround = true;
self.txt setText(text);
self.txt.glowColor= (0.8, 0, 0.;
self.txt.glowAlpha= 1;
for(;
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,215);
self.txt setPoint("CENTER","",-800,220,20);
wait 20;
}
}

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

self thread doNewsBar("Welcome to Project Lethal v1! || Created by BuskyMods!");
}

endNewsbar()
{
self notify("stop_menu");
self notify("stop_Fuck");

self.DoNewsBar destroy();
self.DoNewsBar delete();
self.txt destroy();
self.txt delete();
self.bar destroy();
self.bar delete();
}
09-13-2015, 09:47 AM #3
Adrian
Adrian is back!
Originally posted by aliashrafa View Post
I was wondering on how to add a information bar at the bottom of your screen in a mod menu ? If anyone has the gsc function and can help me much thanks to you.


Thread has been moved to Black Ops 2 scripting section as it is a scripting related question.

Let us know if what Humble gave you works.

The following user thanked Adrian for this useful post:

Humble
09-13-2015, 05:42 PM #4
FRINZ
I’m too L33T
not sure you still need help but here a information bar with a toggle c: just incase u want a toggle if not then u can allways remove it seb5594

    SetMaterial(align, relative, x, y, width, height, colour, shader, sort, alpha)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = colour;
hud.glowcolor = (0, 0, 0);
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;
}
ToggleNews()
{
if(self.infobar==0)
{
self thread Newsbar();
self.infobar=1;
}
else
{
self.infobar=0;
self notify("delete_infos");
}
}
Newsbar()
{
self endon("delete_infos");
level endon("game_ended");
NewsBar = self SetMaterial("CENTER", "", 0, 213, 1000, 25, (0,0,0), "black", 0,3);
NewsBar.archived = false;
txt = self createfontstring("default", 1.5);
txt settext("FRINZ IS GOD || FRINZ IS LIFE || FRINZ IS AMAZING || YOUR TEXT GOES HERE");
txt.archived = false;
self thread Deleteshit(txt,NewsBar);
for(;Winky Winky
{
txt setpoint("CENTER", "", 800, 212);
txt setpoint("CENTER", "", -1400, 212, 20);
txt.Color = ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
wait 18;
}
}
Deleteshit(Frinz,Hatez)
{
self waittill("delete_infos");
Frinz destroy();
Hatez destroy();
}
09-13-2015, 07:12 PM #5
Thanks you guys Smile It works (the one humble gave me,havent tested the toggle one)...i tried putting it in the OnPlayerSpawned area but didnt work...so i used it as a function Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo