SA-MP Forums Archive
Little Help - 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: Little Help (/showthread.php?tid=346826)



Little Help - Menaz - 30.05.2012

How to change color
Of Dailog_box

Need To pick colors from colorpicker.com ?

Код:
if(response)//button Next
  {
      ShowPlayerDialog(playerid, 10+3, DIALOG_STYLE_MSGBOX, "Commands Menu", "\n/Flip = Flip Car\n/tcar Spawn Tune Car\n/goto = Teleport To Players\n/race\n/afk\n/back\", "Next", "Cancel");
}



Re: Little Help - pasha97 - 30.05.2012

Quote:
Originally Posted by Menaz
Посмотреть сообщение
How to change color
Of Dailog_box

Need To pick colors from colorpicker.com ?

Код:
if(response)//button Next
  {
      ShowPlayerDialog(playerid, 10+3, DIALOG_STYLE_MSGBOX, "Commands Menu", "\n/Flip = Flip Car\n/tcar Spawn Tune Car\n/goto = Teleport To Players\n/race\n/afk\n/back\", "Next", "Cancel");
}
Yes, you are right. When you get a color you want put it into brackets {color} and past in front of needed text? for example:

Код:
if(response)//button Next
  {
   ShowPlayerDialog(playerid, 10+3, DIALOG_STYLE_MSGBOX, "{ff0000}Commands Menu", "{00ff00}\n/Flip = Flip Car\n/tcar Spawn Tune Car\n/goto = Teleport To Players\n/race\n/afk\n/back\", "Next", "Cancel");
}



Re: Little Help - Gamer_Z - 30.05.2012

http://www.colorpicker.com/ <- pick a color, note it (eg 0F26D6) , put it like this into the string:
"{color here}text {another color} other text" eg:
"{FFFFFF} This is white and {0F26D6} This is blue"


Re: Little Help - Menaz - 30.05.2012

ohh thnx both guys