PDA

View Full Version : Transparent Login Text draw help


IggyKlipz
10/06/2017, 03:40 PM
ive been trying to make it so its transparent . but ive tryed doing it it hasn't work and i dont know why it hasn't but i was looking around and reading up about them maybe false info ?... anyone able to help me???

Sulps
10/06/2017, 03:58 PM
are we suppose to guess your code? Post your textdraw code?

IggyKlipz
10/06/2017, 04:53 PM
MainMenuTxtdraw[0] = TextDrawCreate(315.000000, 26.000000, "Ultra Gaming RolePlay");
TextDrawAlignment(MainMenuTxtdraw[0], 2);
TextDrawBackgroundColor(MainMenuTxtdraw[0], 0x00000077);
TextDrawFont(MainMenuTxtdraw[0], 3);
TextDrawLetterSize(MainMenuTxtdraw[0], 0.949999, 3.199999);
TextDrawColor(MainMenuTxtdraw[0], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[0], 1);
TextDrawSetProportional(MainMenuTxtdraw[0], 1);

MainMenuTxtdraw[1] = TextDrawCreate(639.000000, -1.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[1], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[1], 0x00000077);
TextDrawFont(MainMenuTxtdraw[1], 1);
TextDrawLetterSize(MainMenuTxtdraw[1], 0.239999, 10.900000);
TextDrawColor(MainMenuTxtdraw[1], 0x00000077);
TextDrawSetOutline(MainMenuTxtdraw[1], 0);
TextDrawSetProportional(MainMenuTxtdraw[1], 1);
TextDrawSetShadow(MainMenuTxtdraw[1], 1);
TextDrawUseBox(MainMenuTxtdraw[1], 1);
TextDrawBoxColor(MainMenuTxtdraw[1], 255);
TextDrawTextSize(MainMenuTxtdraw[1], 102.000000, 330.000000);

MainMenuTxtdraw[2] = TextDrawCreate(679.000000, 100.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[2], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[2], 0x00000077);
TextDrawFont(MainMenuTxtdraw[2], 1);
TextDrawLetterSize(MainMenuTxtdraw[2], 0.340000, 0.100001);
TextDrawColor(MainMenuTxtdraw[2], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[2], 0);
TextDrawSetProportional(MainMenuTxtdraw[2], 1);
TextDrawSetShadow(MainMenuTxtdraw[2], 1);
TextDrawUseBox(MainMenuTxtdraw[2], 1);
TextDrawBoxColor(MainMenuTxtdraw[2], 0x00FFFFFF);
TextDrawTextSize(MainMenuTxtdraw[2], 102.000000, 349.000000);

MainMenuTxtdraw[3] = TextDrawCreate(312.000000, 55.000000, SERVER_VERSION);
TextDrawAlignment(MainMenuTxtdraw[3], 2);
TextDrawBackgroundColor(MainMenuTxtdraw[3], 255);
TextDrawFont(MainMenuTxtdraw[3], 2);
TextDrawLetterSize(MainMenuTxtdraw[3], 0.670000, 2.299998);
TextDrawColor(MainMenuTxtdraw[3], -1);
TextDrawSetOutline(MainMenuTxtdraw[3], 0);
TextDrawSetProportional(MainMenuTxtdraw[3], 1);
TextDrawSetShadow(MainMenuTxtdraw[3], 5);

MainMenuTxtdraw[4] = TextDrawCreate(639.000000, 339.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[4], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[4], 0x00000077);
TextDrawFont(MainMenuTxtdraw[4], 1);
TextDrawLetterSize(MainMenuTxtdraw[4], 0.239999, 11.900000);
TextDrawColor(MainMenuTxtdraw[4], 0x00000077);
TextDrawSetOutline(MainMenuTxtdraw[4], 0);
TextDrawSetProportional(MainMenuTxtdraw[4], 1);
TextDrawSetShadow(MainMenuTxtdraw[4], 1);
TextDrawUseBox(MainMenuTxtdraw[4], 1);
TextDrawBoxColor(MainMenuTxtdraw[4], 255);
TextDrawTextSize(MainMenuTxtdraw[4], 102.000000, 330.000000);

MainMenuTxtdraw[5] = TextDrawCreate(679.000000, 338.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[5], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[5], 0x00000077);
TextDrawFont(MainMenuTxtdraw[5], 1);
TextDrawLetterSize(MainMenuTxtdraw[5], 0.340000, 0.100001);
TextDrawColor(MainMenuTxtdraw[5], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[5], 0);
TextDrawSetProportional(MainMenuTxtdraw[5], 1);
TextDrawSetShadow(MainMenuTxtdraw[5], 1);
TextDrawUseBox(MainMenuTxtdraw[5], 1);
TextDrawBoxColor(MainMenuTxtdraw[5], 0x00FFFFFF);
TextDrawTextSize(MainMenuTxtdraw[5], 102.000000, 349.000000);

new newsstring[128];
format(newsstring, sizeof(newsstring), "News: %s", GlobalMOTD);
MainMenuTxtdraw[6] = TextDrawCreate(322.000000, 355.000000, newsstring);
TextDrawAlignment(MainMenuTxtdraw[6], 2);
TextDrawBackgroundColor(MainMenuTxtdraw[6], 255);
TextDrawFont(MainMenuTxtdraw[6], 1);
TextDrawLetterSize(MainMenuTxtdraw[6], 0.500000, 2.499999);
TextDrawColor(MainMenuTxtdraw[6], -1);
TextDrawSetOutline(MainMenuTxtdraw[6], 0);
TextDrawSetProportional(MainMenuTxtdraw[6], 1);
TextDrawSetShadow(MainMenuTxtdraw[6], 1);

MainMenuTxtdraw[7] = TextDrawCreate(313.000000, 383.000000, "Players online:");
TextDrawAlignment(MainMenuTxtdraw[7], 2);
TextDrawBackgroundColor(MainMenuTxtdraw[7], 255);
TextDrawFont(MainMenuTxtdraw[7], 1);
TextDrawLetterSize(MainMenuTxtdraw[7], 0.600000, 2.600000);
TextDrawColor(MainMenuTxtdraw[7], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[7], 0);
TextDrawSetProportional(MainMenuTxtdraw[7], 1);
TextDrawSetShadow(MainMenuTxtdraw[7], 1);

MainMenuTxtdraw[8] = TextDrawCreate(77.000000, 414.000000, "Website:");
TextDrawBackgroundColor(MainMenuTxtdraw[8], 255);
TextDrawFont(MainMenuTxtdraw[8], 1);
TextDrawLetterSize(MainMenuTxtdraw[8], 0.469999, 2.199999);
TextDrawColor(MainMenuTxtdraw[8], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[8], 0);
TextDrawSetProportional(MainMenuTxtdraw[8], 1);
TextDrawSetShadow(MainMenuTxtdraw[8], 1);

MainMenuTxtdraw[9] = TextDrawCreate(144.000000, 414.000000, WEBSITE);
TextDrawBackgroundColor(MainMenuTxtdraw[9], 255);
TextDrawFont(MainMenuTxtdraw[9], 1);
TextDrawLetterSize(MainMenuTxtdraw[9], 0.469999, 2.199999);
TextDrawColor(MainMenuTxtdraw[9], -1);
TextDrawSetOutline(MainMenuTxtdraw[9], 0);
TextDrawSetProportional(MainMenuTxtdraw[9], 1);
TextDrawSetShadow(MainMenuTxtdraw[9], 1);

MainMenuTxtdraw[10] = TextDrawCreate(317.000000, 414.000000, "Teamspeak:");
TextDrawBackgroundColor(MainMenuTxtdraw[10], 255);
TextDrawFont(MainMenuTxtdraw[10], 1);
TextDrawLetterSize(MainMenuTxtdraw[10], 0.469999, 2.199999);
TextDrawColor(MainMenuTxtdraw[10], 0x00FFFFFF);
TextDrawSetOutline(MainMenuTxtdraw[10], 0);
TextDrawSetProportional(MainMenuTxtdraw[10], 1);
TextDrawSetShadow(MainMenuTxtdraw[10], 1);

MainMenuTxtdraw[11] = TextDrawCreate(406.000000, 414.000000, TEAMSPEAK);
//MainMenuTxtdraw[11] = TextDrawCreate(398.000000, 414.000000, "Will be online soon");
TextDrawBackgroundColor(MainMenuTxtdraw[11], 255);
TextDrawFont(MainMenuTxtdraw[11], 1);
TextDrawLetterSize(MainMenuTxtdraw[11], 0.469999, 2.199999);
TextDrawColor(MainMenuTxtdraw[11], -1);
TextDrawSetOutline(MainMenuTxtdraw[11], 0);
TextDrawSetProportional(MainMenuTxtdraw[11], 1);
TextDrawSetShadow(MainMenuTxtdraw[11], 1);

ThomasEvil
10/06/2017, 04:56 PM
Do not need to share code.

http://wiki.sa-mp.com/wiki/Colors_List

Look for Alpha values.

IggyKlipz
10/06/2017, 06:53 PM
when i try use alpha >? .... it doesnt work or im just not doing it right

DemME
10/06/2017, 08:51 PM
when i try use alpha >? .... it doesnt work or im just not doing it right

change the color of the background or whatever you want to 0x00