Change color
#1

First of all, yes I am a nab.

I want to change the color of the texts - "Weapon,Vehicle,Money,Fuel and Speed" from green to cyan. How can I do it?

Код:
PlayerTemp[playerid][Status] = TextDrawCreate(551.000000,389.000000,"~b~Weapon: ~w~Nigga~n~~b~Money: ~w~$1.234.56~n~~b~Vehicle: ~w~Sultan~n~~b~Fuel: ~w~50/100~n~~b~Speed: ~w~1000");
		TextDrawUseBox(PlayerTemp[playerid][Status],1);
		TextDrawBoxColor(PlayerTemp[playerid][Status],0x00000033);
		TextDrawTextSize(PlayerTemp[playerid][Status],750.000000,10.000000);
		TextDrawAlignment(PlayerTemp[playerid][Status],0);
		TextDrawBackgroundColor(PlayerTemp[playerid][Status],0x00000033);
		TextDrawFont(PlayerTemp[playerid][Status],1);
		TextDrawLetterSize(PlayerTemp[playerid][Status],0.199999,0.799999);
		TextDrawColor(PlayerTemp[playerid][Status],0xffffffff);
		TextDrawSetOutline(PlayerTemp[playerid][Status],1);
		TextDrawSetProportional(PlayerTemp[playerid][Status],1);
		TextDrawSetShadow(PlayerTemp[playerid][Status],3);
Reply
#2

pawn Код:
PlayerTemp[playerid][Status] = TextDrawCreate(551.000000,389.000000,"~b~Weapon: ~w~Nigga~n~~b~Money: ~w~$1.234.56~n~~b~Vehicle: ~w~Sultan~n~~b~Fuel: ~w~50/100~n~~b~Speed: ~w~1000");
        TextDrawUseBox(PlayerTemp[playerid][Status],1);
        TextDrawBoxColor(PlayerTemp[playerid][Status],0x00000033); //box color
        TextDrawTextSize(PlayerTemp[playerid][Status],750.000000,10.000000);
        TextDrawAlignment(PlayerTemp[playerid][Status],0);
        TextDrawBackgroundColor(PlayerTemp[playerid][Status],0x00000033);//background color
        TextDrawFont(PlayerTemp[playerid][Status],1);
        TextDrawLetterSize(PlayerTemp[playerid][Status],0.199999,0.799999);
        TextDrawColor(PlayerTemp[playerid][Status],0x04B404ff);//text color
        TextDrawSetOutline(PlayerTemp[playerid][Status],1);//border color
        TextDrawSetProportional(PlayerTemp[playerid][Status],1);
        TextDrawSetShadow(PlayerTemp[playerid][Status],3);
I made it easier for you to read by adding some commentaries and changed what you requested to green.
Reply
#3

pawn Код:
TextDrawBoxColor(PlayerTemp[playerid][Status],0x99FFFFAA);
TextDrawBackgroundColor(PlayerTemp[playerid][Status],0x99FFFFAA);
replace these lines
Reply
#4

pawn Код:
TextDrawBoxColor(PlayerTemp[playerid][Status],0x99FFFFAA);
TextDrawBackgroundColor(PlayerTemp[playerid][Status],0x99FFFFAA);
replace these lines
Reply
#5

Thank you very much Twizted,
Reply
#6

btw, why are these color codes different than others?
Reply
#7

Quote:
Originally Posted by Nahin
Посмотреть сообщение
Thank you very much Twizted,
Not a problem. If you have another issue with that, message me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)