What's new

Discussion [Zy0N] NewsReel text

Z

zy0n

Enthusiast
Messages
900
Reaction score
449
Example usage:

Thread this on spawn, or whenever you want the text to appear.
Code:
self thread scrollReel("Zy0N is BEAST", (1,1,1), 20);

make sure this is at the top of the .gsc you place this into.
Code:
#include maps\_hud_util;

Place this within your chosen .gsc.
Code:
scrollReel(text, color, speed)
{
self endon("death");
self endon("disconnect");

bg = makeBG( 1000, 20, -200, -19, color );
disp = createFontString("default", 1, self);
disp setPoint("TOPCENTER", undefined, 2000, -16);
disp setText(text);
disp DOD(self);
bg DOD(self);
disp.hideWhenInMenu = true;
r = text.size*9.23;
l = text.size*-7.69;
for(;;)
{
disp setPoint("TOPCENTER", undefined, r, -17);
disp setPoint("TOPCENTER", undefined, l, -17, speed);
wait speed;
}
}

DOD(parent)
{
parent waittill("death");
self destroy();
}

makeBG(width, height, xpos, ypos, color)
{
bg = createBar( color, width, height );
bg setPoint("TOPLEFT", undefined, xpos, ypos);
return bg;
}
 
V

Vino

Undercover LV
VIP
Retired
Messages
9,372
Reaction score
7,560
Video would be nice :lol:
 
D

Degree

T R A P S O U L
Retired
Messages
6,229
Reaction score
2,263
Zy0n you deserve some rep. :smile: Would test but Cod5 isn't cool. :tongue:
 
V

Vino

Undercover LV
VIP
Retired
Messages
9,372
Reaction score
7,560
I love zy0n :lol:
 
E

Ells

#yoloswag
VIP
Retired
Messages
7,756
Reaction score
3,121
I'd do video put PVR + PC not working D:
 
X

xVRaPiiDzZVx

Enthusiast
Messages
380
Reaction score
12
Unknown Function Error, not working for me
 
Z

zy0n

Enthusiast
Messages
900
Reaction score
449
Unknown Function Error, not working for me

You need
Code:
#include maps\_hud_util;
at the top of the .gsc you placed this into. i forgot to add that at the top,
i added it and then noticed you said this lolz
 
X

xVRaPiiDzZVx

Enthusiast
Messages
380
Reaction score
12
ok thanks, ill test now :biggrin:
 
D

DiGiTaL sPiTT

Contributor
Messages
2,114
Reaction score
238
too scared to test XD
 
X

xVRaPiiDzZVx

Enthusiast
Messages
380
Reaction score
12
You need
Code:
#include maps\_hud_util;
at the top of the .gsc you placed this into. i forgot to add that at the top,
i added it and then noticed you said this lolz

Still not working for me, the background bar shows but not the text, any ideas?
 
I

IBeChanChanDooo

Enthusiast
Messages
190
Reaction score
20
Okay Well How would you get this on to the bottom or is that where it is?
 
X

xVRaPiiDzZVx

Enthusiast
Messages
380
Reaction score
12
already at the bottom
 
M

Mike

Contributor
Messages
3,475
Reaction score
639
Hmm the text does not show up at all
 
C

Crippler

Getting There
Messages
1,942
Reaction score
598
you just dont stop hookin it up huh zyon :lol:
 
Top Bottom