Post: Help with Newsbar HELP
10-15-2014, 08:13 PM #1
NGUTactical
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); i want to know i silent shadow by Freeplayer20896

in his newsbar he has your host today then the hosts name what the dvar or code for the hosts name if u know what i mean
(adsbygoogle = window.adsbygoogle || []).push({});
10-16-2014, 11:43 PM #11
Shark
Retired.
Originally posted by HaXingIsGoD View Post
i want to know i silent shadow by Freeplayer20896

in his newsbar he has your host today then the hosts name what the dvar or code for the hosts name if u know what i mean


    
drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort, allclients)
{
if (!isDefined(allclients))
allclients = false;

if (!allclients)
hud = self createFontString(font, fontScale);
else
hud = level createServerFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort, allclients)
{
if (!isDefined(allclients))
allclients = false;

if (!allclients)
hud = newClientHudElem(self);
else
hud = newHudElem();
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

informationBar()
{
level endon("game_ended");

level.infoBarBackground = level drawShader("white", -50, 30, 1000, 35, (0, 0, 0), 0.50, 7, true);
level.infoBarBackground.alignX = "center";
level.infoBarBackground.alignY = "bottom";
level.infoBarBackground.horzAlign = "center";
level.infoBarBackground.vertAlign = "bottom";

level.infoBarText = level drawText("Your Host For Today Is ^5" + level.hostname, "objective", 2, 1000, 26, (1, 1, 1), 1, (0, 0, 0), 0, 10, true);
level.infoBarText.alignX = "center";
level.infoBarText.alignY = "bottom";
level.infoBarText.horzAlign = "center";
level.infoBarText.vertAlign = "bottom";

for (;Winky Winky
{
if (level.infoBarText.x == -1000)
level.infoBarText.x = 1000;
else
{
level.infoBarText MoveOverTime(20);
level.infoBarText.x = -1000;
wait 25;
}
wait 0.05;
}
}


Run it on a level thread :p
10-17-2014, 08:16 PM #12
Taylor
Former Black Knight.
Originally posted by HaXingIsGoD View Post
i want to know i silent shadow by Freeplayer20896

in his newsbar he has your host today then the hosts name what the dvar or code for the hosts name if u know what i mean


There are a few days to do this:
    
getHostName()
{
foreach(player in level.players)
{
if(player isHost())
return player.name;
}
return "Not found";
}


    
level.hostname


    
getDvar("sv_hostname")

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo