SA-MP Forums Archive
1 Question - 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: 1 Question (/showthread.php?tid=631269)



1 Question - sas10 - 26.03.2017

hi
there any way to change color textdraw like this!
PHP код:
SendClientMessage(playerid, -1"{FF0000}You are now robbing the {00FFFF}Casino{FF0000}!"); 
i tired to make somthing like that
PHP код:
    Sky14 TextDrawCreate(20.000000215.000000"Over Bone {FFFF00}County");
    
TextDrawBackgroundColor(Sky14255);
    
TextDrawFont(Sky141);
    
TextDrawLetterSize(Sky140.3100001.100000);
    
TextDrawColor(Sky14, -1);
    
TextDrawSetOutline(Sky141);
    
TextDrawSetProportional(Sky141); 
but not working the colour and the hex code writing in my text


Re: 1 Question - Toroi - 26.03.2017

You can use the following type of color input:

https://sampwiki.blast.hk/wiki/GameTextStyle

Quote:

Text Colors
  • ~n~ New line
  • ~r~ Red
  • ~g~ Green
  • ~b~ Blue
  • ~w~ White
  • ~y~ Yellow
  • ~p~ Purple
  • ~l~ Black (lower case L)
  • ~h~ Turn text color lighter (used too much will make your text white, doesn't work on black)



Re: 1 Question - sas10 - 26.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
You can use the following type of color input:

https://sampwiki.blast.hk/wiki/GameTextStyle
thanks its working
but more Question
there only this color to use ?
PHP код:
    ~n~ New line
    
~rRed
    
~gGreen
    
~bBlue
    
~wWhite
    
~yYellow
    
~pPurple
    
~lBlack (lower case L)
    ~
hTurn text color lighter (used too much will make your text whitedoesn't work on black) 
i want like hex there much color or i cant ?