SolvedSimple Static Text

Posts 1–7 of 7 · Page 1 of 1
Simple Static Text
Hello guys.

I´m Trying to do the tutorials in the forum but i dont have sucess.

I only want to creat a static text in the top left corner.

I alredy know hot to mod the server. I have the _rank inside de test.iwd

but i dont know hot configur this to do what i want!

Thanks!

PS: Sorry for the bad english ...
Code:
ModInfo()
{
self endon( "disconnect" );
info = self createFontString("hudbig", 0.4);
info setPoint("TOPLEFT", "TOPLEFT", -3, 0);

info setText("Text here!");

}
Which tutorials and what do you mean by static? Just that you don't want it to move?
okey quick tut for you

Code:
text()
{
self endon( "disconnect" );

line1 = self createFontString("hudbig", 0.4); 

// text size 1 is normal 2 is big 0.4 is little. you can change the number however yoy want

line1 setPoint("TOPLEFT", "TOPLEFT", -3, 0);

 //TOPLEFT can be changed for CENTER or TOPRIGHT  
// the -3 is the pixels from left to right (so -3 means 3 pixels to the left 3 means 3 pixels to the right.
//the 0 is pixels down from the top so if you change it to 10 it will go down

line1 setText("Text here!");

//the line wil apear on the cordinates you gave it because 

}
add a other line of text:
Code:
ModInfo()
{
self endon( "disconnect" );
line1 = self createFontString("hudbig", 0.4);
line1 setPoint("TOPLEFT", "TOPLEFT", -3, 0);
line2 = self createFontString("hudbig", 0.4);
line2 setPoint("CENTER", "CENTER", -3, 0);

line1 setText("Text here!");
line2 setText("Text here!");

}
this way you can make as much lines as you want
Thanks Guys!!

I´´m new i want to start with the basics
solved baby!
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.
Talk with us