20.09.2013, 03:00
How to add more
Colors in a Cmd or Dialog or a simple line
Hello everyone, today i will teach you something...Maybe you know it but, it's good for newbies
well ! this tutorial is simple !
(if my english is bad, please, someone send a private message with the correction please)*
well ! this tutorial is simple !
(if my english is bad, please, someone send a private message with the correction please)*
well this is my first tutorial so i need to say somethig>!!!!
Hi mon ! i won
did you see?
well, continuing with the tutorial
firstly than nothing we need Hexadecimal Colors codes !
so we can find more colors HERE
well i will show you the primary colors
Code:
{ "BLUE", "1B1BE0" }, { "PINK", "E81CC9" }, { "YELLOW", "DBED15" }, { "LIGHTGREEN", "8CED15" }, { "LIGHTBLUE", "15D4ED" }, { "RED", "FF0000" }, { "GREY", "BABABA" }, { "WHITE", "FFFFFF" }, { "ORANGE", "DB881A" }, { "GREEN", "37DB45" }, { "PURPLE", "7340DB" }
Simple we will do this (just an example)
pawn Code:
SendClientMessage(playerid, -1, "did you know that this is the best server?");
pawn Code:
SendClientMessage(playerid, -1, "did you know that this is the {37DB45}best{FFFFFF} server?");//there we will add the Hexadecimal Code to get a color in a word
I will to another example
pawn Code:
CMD:tips(playerid, params[])
{
SendClientMessage(playerid, -1, "_________{DB881A}TIPS{FFFFFF}_____________");// here ONLY "tips" will be orange color
SendClientMessage(playerid, -1, "Don't {37DB45}download{FFFFFF}/{7340DB}watch{FFFFFF} {FF0000}porn{FFFFFF} while you're playing thats cause lag"); // here "download" will be Green color and watch will be purple also Porn will be RED color
SendClientMessage(playerid, -1, "Do it your Homework before play here");
SendClientMessage(playerid, -1, "get {BABABA}GTA V{FFFFFF} and go home");// here only GTA v will be grey color
SendClientMessage(playerid, -1, "did you know that this is the best server?");
SendClientMessage(playerid, -1, "____~b~~h~S~r~A~b~ M ~g~P ~w~F ~r~O ~g~R ~b~U~w~ M~b~ S____");// this are other code get more colors but better is {FFFFFF} hexadecimal codes
return 1;
}
sorry if my english is bad
have a good night
goodbye
-RafaeZam