stock DefaultTextdraws()
{
remadeText = TextDrawCreate(506.000000, 380.000000, "... || Infestation || ...");
TextDrawBackgroundColor(remadeText, 255);
TextDrawFont(remadeText, 2);
TextDrawLetterSize(remadeText, 0.159999, 1.399999);
TextDrawColor(remadeText, 16777215);
TextDrawSetOutline(remadeText, 0);
TextDrawSetProportional(remadeText, 1);
TextDrawSetShadow(remadeText, 1);
remadeText2 = TextDrawCreate(517.000000, 389.000000, "Visit our forum");
TextDrawBackgroundColor(remadeText2, 255);
TextDrawFont(remadeText2, 2);
TextDrawLetterSize(remadeText2, 0.140000, 1.200000);
TextDrawColor(remadeText2, -1);
TextDrawSetOutline(remadeText2, 0);
TextDrawSetProportional(remadeText2, 1);
TextDrawSetShadow(remadeText2, 1);
TimeLeft = TextDrawCreate(22.000000, 251.000000, "180");
TextDrawBackgroundColor(TimeLeft, 255);
TextDrawFont(TimeLeft, 3);
TextDrawLetterSize(TimeLeft, 1.770000, 3.499999);
TextDrawColor(TimeLeft, 16777215);
TextDrawSetOutline(TimeLeft, 0);
TextDrawSetProportional(TimeLeft, 1);
TextDrawSetShadow(TimeLeft, 1);
UntilRescue = TextDrawCreate(34.000000, 280.000000, "UNTIL EVAC");
TextDrawBackgroundColor(UntilRescue, 255);
TextDrawFont(UntilRescue, 1);
TextDrawLetterSize(UntilRescue, 0.380000, 0.900000);
TextDrawColor(UntilRescue, -1);
TextDrawSetOutline(UntilRescue, 0);
TextDrawSetProportional(UntilRescue, 1);
TextDrawSetShadow(UntilRescue, 1);
AliveInfo = TextDrawCreate(23.000000, 169.000000, "~b~HUMANS ALIVE: 0~n~ZOMBIES ALIVE: 0~n~~r~FORUMS~W~:COMING SOON");
TextDrawBackgroundColor(AliveInfo, 255);
TextDrawFont(AliveInfo, 1);
TextDrawLetterSize(AliveInfo, 0.200000, 1.400000);
TextDrawColor(AliveInfo, -1);
TextDrawSetOutline(AliveInfo, 0);
TextDrawSetProportional(AliveInfo, 1);
TextDrawSetShadow(AliveInfo, 1);
XP = TextDrawCreate(502.000000, 11.000000, "~n~");
TextDrawBackgroundColor(XP, 255);
TextDrawFont(XP, 2);
TextDrawLetterSize(XP, 0.270000, 1.000000);
TextDrawColor(XP, 16777215);
TextDrawSetOutline(XP, 0);
TextDrawSetProportional(XP, 1);
TextDrawSetShadow(XP, 1);
CurrentMap = TextDrawCreate(42.000000, 289.000000, "~r~Map: Loading");
TextDrawBackgroundColor(CurrentMap, 255);
TextDrawFont(CurrentMap, 2);
TextDrawLetterSize(CurrentMap, 0.190000, 0.700000);
TextDrawColor(CurrentMap, -1);
TextDrawSetOutline(CurrentMap, 0);
TextDrawSetProportional(CurrentMap, 1);
TextDrawSetShadow(CurrentMap, 1);
EventText = TextDrawCreate(503.000000, 397.000000, "COMING SOON");
TextDrawBackgroundColor(EventText, 255);
TextDrawFont(EventText, 2);
TextDrawLetterSize(EventText, 0.300000, 1.000000);
TextDrawColor(EventText, -16776961);
TextDrawSetOutline(EventText, 0);
TextDrawSetProportional(EventText, 1);
TextDrawSetShadow(EventText, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
Infected[i] = TextDrawCreate(2.000000, 1.000000, "~n~");
TextDrawBackgroundColor(Infected[i], 255);
TextDrawFont(Infected[i], 1);
TextDrawLetterSize(Infected[i], 0.500000, 50.000000);
TextDrawColor(Infected[i], -1);
TextDrawSetOutline(Infected[i], 0);
TextDrawSetProportional(Infected[i], 1);
TextDrawSetShadow(Infected[i], 1);
TextDrawUseBox(Infected[i], 1);
TextDrawBoxColor(Infected[i], 1174405190);
TextDrawTextSize(Infected[i], 640.000000, 0.000000);
iKilled[i] = TextDrawCreate(237.000000, 418.000000, "Loading");
TextDrawBackgroundColor(iKilled[i], 255);
TextDrawFont(iKilled[i], 2);
TextDrawLetterSize(iKilled[i], 0.200000, 1.000000);
TextDrawColor(iKilled[i], -1);
TextDrawSetOutline(iKilled[i], 0);
TextDrawSetProportional(iKilled[i], 1);
TextDrawSetShadow(iKilled[i], 1);
myXP[i] = TextDrawCreate(546.000000, 54.000000, "Loading");
TextDrawBackgroundColor(myXP[i], 255);
TextDrawFont(myXP[i], 2);
TextDrawLetterSize(myXP[i], 0.300000, 1.000000);
TextDrawColor(myXP[i], 16777215);
TextDrawSetOutline(myXP[i], 0);
TextDrawSetProportional(myXP[i], 1);
TextDrawSetShadow(myXP[i], 1);
ServerIntroOne[i] = TextDrawCreate(180.000000, 111.000000, "Infestation~n~ ~r~Apocalypse "SCRIPT"");
TextDrawBackgroundColor(ServerIntroOne[i], 255);
TextDrawFont(ServerIntroOne[i], 3);
TextDrawLetterSize(ServerIntroOne[i], 0.800000, 4.000000);
TextDrawColor(ServerIntroOne[i], -1);
TextDrawSetOutline(ServerIntroOne[i], 0);
TextDrawSetProportional(ServerIntroOne[i], 1);
TextDrawSetShadow(ServerIntroOne[i], 1);
ServerIntroTwo[i] = TextDrawCreate(287.000000, 120.000000, " Server Owner:~r~Stones~n~~r~ Make sure you register on our forum: ~y~ COMING SOON!");
TextDrawBackgroundColor(ServerIntroTwo[i], 255);
TextDrawFont(ServerIntroTwo[i], 1);
TextDrawLetterSize(ServerIntroTwo[i], 0.220000, 1.200000);
TextDrawColor(ServerIntroTwo[i], -1);
TextDrawSetOutline(ServerIntroTwo[i], 0);
TextDrawSetProportional(ServerIntroTwo[i], 1);
TextDrawSetShadow(ServerIntroTwo[i], 1);
}
return 1;
}
new Text:myTextDraw;
myTextDraw = TextDrawCreate(xalign, yalign, "s4t3k:samp");
you use the function textdrawcreate to create it, and use other textdraw functions to adjust everything and add colours. you can find enough examples in samp wiki. although I don't know how to add pics, never seen it before
|
To add pictures, you must use TXD Workshop.
Create/Download the picture from ****** Images for example, add the picture to a .txd file you have created, and get the name of the picture. For example, I've created the TXD s4t3k with the picture samp inside, to display the picture, I'll do PHP код:
|