Post: Blackops NewsBar (ScrollBar)
02-19-2011, 01:35 AM #1
DiJiTaLNiCk
BaLLiN' STaTuS
(adsbygoogle = window.adsbygoogle || []).push({}); Here is a preview:
[ame=https://www.youtube.com/watch?v=kdxaw-E1uXo]YouTube - Black Ops - Modded Gametype - Roll The Dice - by Nitram[/ame]

Here is The Script:
Create_Newsbar( Shader, Align, Alpha, Color, Speed )
{
News = spawnStruct();
News.Text = newHudElem();
News.Text.alignX = "CENTER";
News.Text.horzAlign = "CENTER";
News.Text.foreGround = true;
News.Text.hideWhenInMenu = true;
News.Text.Glow = 1;
News.Text.Sort = 2;
News.Shader = newHudElem();
News.Shader.horzAlign = "CENTER";
News.Shader.alignX = "CENTER";
News.Shader.foreGround = FALSE;
News.Shader.hideWhenInMenu = TRUE;
News.Shader.Sort = 1;
News.Speed = 60;
if( isDefined( Speed ) ) News.Speed = Speed;
if( isDefined( Align ) )
{
News.Text.alignY = Align;
News.Text.vertAlign = Align;
News.Shader.alignY = Align;
News.Shader.vertAlign = Align;
}
else
{
News.Text.alignY = "TOP";
News.Text.vertAlign = "TOP";
News.Shader.alignY = "TOP";
News.Shader.vertAlign = "TOP";
}
if( isDefined( Alpha ) ) News.Shader.Alpha = Alpha;
else News.Shader.Alpha = 0.75;
if( ( !isDefined( Color ) ) && ( !isDefined( Shader ) ) ) Shader = "BLACK";
if( isDefined( Shader ) ) News.Shader setShader( Shader, 0, 25 );
if( ( isDefined( Color ) ) && ( !isDefined( Shader ) ) )
{
News.Shader.Color = Color;
News.Shader setShader( "WHITE", 0, 25 );

}
News.Shader scaleOverTime( 7, 880, 25 );
wait 7;
level notify( "Created_Newsbar", News );
wait ( 0.05 );
}

Set_Newsbartext( Text, Font, FontScale, Color, GColor, GAlpha )
{
level waittill( "Created_Newsbar", News );
News.Message = Text;
if( isDefined( Font ) ) News.Text.Font = Font;
else News.Text.Font = "HUDBIG";
if( isDefined( FontScale ) ) News.Text.FontScale = FontScale;
else News.Text.FontScale = 1;
if( isDefined( Color ) ) News.Text.Color = ( Color[0], Color[1], Color[2] );
if( isDefined( GColor ) ) News.Text.GlowColor = ( GColor[0]/255, GColor[1]/255, GColor[2]/255 );
if( isDefined( GAlpha ) ) News.Text.GlowAlpha = GAlpha;
if( isDefined( Text ) ) News.Text setText( Text );
else News.Text setText( "define your text dip****" );
News.Text.x += ( Text.size + 870 ) * 1.45;
News.TextSize = Text.size;
for( ;; )
{
wait ( 0.05 );
News.Text moveOverTime( ( ( News.TextSize + 870 ) / News.Speed ) );
News.Text.x -= ( News.TextSize + 870 ) * 2.9;
wait ( ( News.TextSize + 870 ) / News.Speed ) - 0.05;
News.Text.x += ( News.TextSize + 870 ) * 2.9;
level notify ( "Done_Message", News );
}
}

Update_Newsbar( NewText, KeepOld )
{
self endon( "Done_Update" );
level waittill( "Done_Message", News );
News.OldMessage = News.Message;
News.OldTextSize = News.TextSize;
News.OldSpeed = News.Speed;
News.Text setText( "^1News Update : ^7" + NewText );
News.TextSize = NewText.size;
News.Speed = 100;
level waittill( "Done_Message" );
News.Speed = News.OldSpeed;
if( isDefined( KeepOld ) && KeepOld )
{
News.Text setText( News.OldMessage );
News.TextSize = News.OldTextSize;
}
else
{
News.Text setText( NewText );
News.TextSize = NewText.size;
}
level notify( "Done_Update" );
}



This function creates the Background

Create_Newsbar( Shader, Align, Alpha, Color, Speed )

//Example's ,
level thread Create_Newsbar(); // You don't have to define any option's for it to work there are defaults.
level thread Create_Newsbar( undefined, "BOTTOM", 50, ( 180, 0, 0 ) );



This function is for the news text,

Set_Newsbartext( Text, Font, FontScale, Color, GColor, GAlpha )

//Example's ,
level thread Set_Newsbartext( "Welcome To ^4NITRAM's ^7Modified Warfare" ); // Now with this you can if you wont just define the text.
level thread Set_Newsbartext( "Welcome To ^4NITRAM's ^7Modified Warfare", "HUDBIG", 1, ( 180, 0, 180 ), ( 180, 180, 0 ), 50 );


This function is for if you what to update the news text an example you just Kick/Verified someone, to use this you would just call it up anytime you want NewText is for what you want to update the text to and KeepOld is if you what it to display the old message again after to update.

Update_Newsbar( NewText, KeepOld )

//Example's ,
level thread Update_Newsbar( "Welcome To ^4NITRAM's ^7Modified Warfare ^1only 30 minutes left!" ); // Won't keep the old message
level thread Update_Newsbar( player.name + " Has been kicked by " + self.name, true );


CREDITS: Nitram - Making the bar
Lost4468 - Based of His idea.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to DiJiTaLNiCk for this useful post:

boombrshot, ReK
02-19-2011, 01:53 AM #2
waloodi
Save Point
u have ps3 or xbox360 ???

---------- Post added at 08:53 PM ---------- Previous post was at 08:52 PM ----------

What your gamertag ????
02-19-2011, 02:13 AM #3
Originally posted by waloodi View Post
u have ps3 or xbox360 ???

---------- Post added at 08:53 PM ---------- Previous post was at 08:52 PM ----------

What your gamertag ????


since the video has all of the xbox buttons i am going to guess it is for ps3

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

MrStormGunner, Stealthclown,
02-19-2011, 02:50 AM #4
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by xChri
since the video has all of the xbox buttons i am going to guess it is for ps3


most scripting for xbox can work on PS3 LOL.
02-19-2011, 03:00 AM #5
posted on se7 but not posted her lol +rep
02-19-2011, 07:18 AM #6
|C++|
< ^ > < ^ >
dude i can edit for ps3 i even added you on skype requesting to join,also i got black ops for pc
:hitman:
02-19-2011, 07:19 AM #7
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by SLiiTH3R View Post
dude i can edit for ps3 i even added you on skype requesting to join,also i got black ops for pc
:hitman:


no u dont. u dont have the ff key. please dont lie bro.
02-19-2011, 07:25 AM #8
|C++|
< ^ > < ^ >
i really do bro :dingding: i really do i mean i swear man why would i lie to join a team of people creating a patch. i guess it would help my -rep i got for posting a very helpful post. And i have 301 rep on 5*Gz premium so dont think im some nobody.at least give me a chance to work with the ps3 part of the patch :bro:

The following 2 users say thank you to |C++| for this useful post:

HypeRiinXz, TiTANiUM
02-19-2011, 07:34 AM #9
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by SLiiTH3R View Post
i really do bro :dingding: i really do i mean i swear man why would i lie to join a team of people creating a patch. i guess it would help my -rep i got for posting a very helpful post. And i have 301 rep on 5*Gz premium so dont think im some nobody.at least give me a chance to work with the ps3 part of the patch :bro:


you send me the start off the ff key. if its correct ill pay you $10 for not believing.
if its wrong i -REP u many many times..
u can back out of this deal.
02-19-2011, 07:37 AM #10
|C++|
< ^ > < ^ >
Originally posted by niccrx View Post
you send me the start off the ff key. if its correct ill pay you $100 for not believing.
if its wrong i -REP u many many times..
u can back out of this deal.


ok ill pm it NOW!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo