• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Newsbar
#1
Background:
PHP Code:
Create_NewsbarShaderAlignAlphaColorSpeed 

//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_Newsbarundefined"BOTTOM"50, ( 1800) ); 

News Text:
PHP Code:
Set_NewsbartextTextFontFontScaleColorGColorGAlpha )

//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, ( 1800180 ), ( 180180),  25 ); 

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.

PHP Code:
Update_NewsbarNewTextKeepOld )

//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_Newsbarplayer.name " Has been kicked by " self.nametrue ); 

Code:
PHP Code:
Create_NewsbarShaderAlignAlphaColorSpeed )
{
        
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( 
isDefinedSpeed ) ) News.Speed Speed;
        if( 
isDefinedAlign ) )
        {
                
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( 
isDefinedAlpha ) ) News.Shader.Alpha Alpha;
        else 
News.Shader.Alpha 0.75;
        if( ( !
isDefinedColor ) ) && ( !isDefinedShader ) ) ) Shader "BLACK";
        if( 
isDefinedShader ) ) News.Shader setShaderShader025 );
        if( ( 
isDefinedColor ) ) && ( !isDefinedShader ) ) )
        {
                
News.Shader.Color Color;
                
News.Shader setShader"WHITE"025 );
                        
        }
        
News.Shader scaleOverTime788025 );
        
wait 7;
        
level notify"Created_Newsbar"News );
        
wait 0.05 );
}

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

Update_NewsbarNewTextKeepOld )
{
        
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( 
isDefinedKeepOld ) && KeepOld )
        {
                
News.Text setTextNews.OldMessage );
                
News.TextSize News.OldTextSize;
        }
        else
        {
                
News.Text setTextNewText );
                
News.TextSize NewText.size;
        }
        
level notify"Done_Update" );




Credits:
Azumikkel (Original Code)
Nitram (edited)
  Reply
#2
looks nice Wink
[-] The following 1 user says Thank You to isokasi for this post:
  • AZUMIKKEL
  Reply
#3
azu didnt make the original code
  Reply
#4
it is the code azumikkel used in his RTD and this code got edited by nitram now.
and yes, i dont know who made the first script of it, probably someone in the time where cod4 was released
  Reply
#5
(02-22-2011, 07:36)d0h! Wrote: it is the code azumikkel used in his RTD and this code got edited by nitram now.
and yes, i dont know who made the first script of it, probably someone in the time where cod4 was released
It seems that u havent read other posts from 7, the xbox version of RTD which in youtube is a customize version by NITRAM, the newsbar is just testing, the true creator is NITRAM, and the original creator is Lost
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#6
How can get xbox buttoms all like that was?
  Reply
#7
(02-22-2011, 13:53)Ferrari Wrote: How can get xbox buttoms all like that was?
If u can see that, thats a video of a mod in XBOX
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)