Welcome page
#1

Well, I am trying to make the welcome page on a test server like this.
How do I start?

Note: Image made in PS

Reply
#2

So We're supposed to guess what "like this" is?
Reply
#3

Textdraws.

Then dialog for the center.
Reply
#4

Can you give a description of the textdraws please? Like the size?
Reply
#5

Here are the textdraw you want(Untested but should be right)
First one up there:
pawn Код:
new Text:RPG;
public OnGameModeInit()
{
    RPG = TextDrawCreate(186.5, 15, "Test Server - RPG");
    TextDrawFont(RPG, 2);
    TextDrawLetterSize(RPG, 1.0, 1.0);
    TextDrawColor(RPG, 0xFFFFFFFF);
    TextDrawSetOutline(RPG, 1);
    TextDrawSetProportional(RPG, true);
    TextDrawSetShadow(RPG, 1);
}
Second one:
pawn Код:
new Text:SERVERIP;
public OnGameModeInit()
{
    SERVERIP = TextDrawCreate(225.5, 52, "Server-IP: 7777");
    TextDrawFont(SERVERIP, 2);
    TextDrawLetterSize(SERVERIP, 0.8, 1.0);
    TextDrawColor(SERVERIP, 0xFFFFFFFF);
    TextDrawSetOutline(SERVERIP, 1);
    TextDrawSetProportional(SERVERIP, true);
    TextDrawSetShadow(SERVERIP, 1);
}
Like that?
Reply
#6

And the black parts?
And for the white text, you used 0xFFFFFFF
What do I need to use for other colors?
And how do I find the codes?
Reply
#7

There are many places to find color codes, you can also download the Scripting Machine which has an option for color picking where you can download here.
And what do you mean, find the codes?
Reply
#8

I meant the color codes.
So how do I add the black parts?
Reply
#9

You shouldn't expect to be spoon fed everything you need to get what you want.

There are a few ways to get black bars (a.k.a. cinema bars). One is to use 'TextDrawUseBox' then using 'TextDrawSetBoxColor'. The other is to use the TextDraw sprite for the white box image, then changing its color to black and using TextDrawSetTextSize to stretch it proper.

I prefer the white box method as it allows for more finer sizes and measurements.

example: Inventory Window built with stretched and colored white boxes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)