Welcome page - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Welcome page (
/showthread.php?tid=452045)
Welcome page -
Nahin - 19.07.2013
Well, I am trying to make the welcome page on a test server like this.
How do I start?
Note: Image made in PS
Re: Welcome page -
Elie1996 - 19.07.2013
So We're supposed to guess what "like this" is?
Re: Welcome page -
ReVo_ - 19.07.2013
Textdraws.
Then dialog for the center.
Re: Welcome page -
Nahin - 19.07.2013
Can you give a description of the textdraws please? Like the size?
Re: Welcome page -
JimmyCh - 19.07.2013
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?
Re: Welcome page -
Nahin - 19.07.2013
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?
Re: Welcome page -
JimmyCh - 19.07.2013
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?
Re: Welcome page -
Nahin - 19.07.2013
I meant the color codes.
So how do I add the black parts?
Re: Welcome page -
Joe Staff - 19.07.2013
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