23.04.2011, 05:58
Hello. Welcome to my first tutorial. I was watching and searching through the guides on SAMP forums for this section, and didn't find anything. I had problems with it too, the wiki info didn't help too much, I'll give here the full information.
Let's get it started.
Alrighty, let me show you what are we going to learn now. As you can see, the new SA-MP 0.3c version allows you to create a message that could include more colors, not just one that was written like:
Here I'll show you how to include more colors in this message such as red, green, blue, yellow..
Alright, so you want this message to appear when someone joins your server.
First of all, you need to read the information from wikipedia. CLICK
The second, if you need all the colors in hexadecimal codes, you can see them at this page, created by RyDeR`: CLICK
Alrighty, you got the colors now.
Let's start with the message. If you need the message like I said, with multiple colors, read below:
We're going to need this message "Welcome to my SA-MP 0.3c server."
However, we want it to be like "Welcome to my SA-MP 0.3c server."
In SA-MP 0.3c, for making a few words look in different colors, you need to put the hexadecimal code into the brackets, like:
And the code for the message should look like this, because your making the red message after the closed bracket, the blue color after the next closed bracket, etc.
Look at this code to see an example:
Also, forgot to state, maybe you noticed and asked yourself why I put the '0xFFFFFFFF' after the 'playerid'? Because you can put what color you want there, it will have no sense if you create a message with multiple colors.
Let's see what we done:

And here we're done with the messages.
However, SA-MP 0.3c allows us to create not only messages with multiple colors, but also 3D texts, Dialogs, Vehicle Number Plates.
-I will update soon with all those.-
Let's get it started.
Alrighty, let me show you what are we going to learn now. As you can see, the new SA-MP 0.3c version allows you to create a message that could include more colors, not just one that was written like:
Code:
SendClientMessage(playerid, 0xFF0000FF, "Welcome to my SA-MP 0.3c server.");
Alright, so you want this message to appear when someone joins your server.
First of all, you need to read the information from wikipedia. CLICK
The second, if you need all the colors in hexadecimal codes, you can see them at this page, created by RyDeR`: CLICK
Quote:
Originally Posted by RyDeR`
{ "BLUE", "1B1BE0" },
{ "PINK", "E81CC9" }, { "YELLOW", "DBED15" }, { "LIGHTGREEN", "8CED15" }, { "LIGHTBLUE", "15D4ED" }, { "RED", "FF0000" }, { "GREY", "BABABA" }, { "WHITE", "FFFFFF" }, { "ORANGE", "DB881A" }, { "GREEN", "37DB45" }, { "PURPLE", "7340DB" } |
Let's start with the message. If you need the message like I said, with multiple colors, read below:
We're going to need this message "Welcome to my SA-MP 0.3c server."
However, we want it to be like "Welcome to my SA-MP 0.3c server."
In SA-MP 0.3c, for making a few words look in different colors, you need to put the hexadecimal code into the brackets, like:
pawn Code:
{FF0000}
Look at this code to see an example:
pawn Code:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Welcome to my {0000FF}SA-MP {DB881A}0.3c {37DB45}server.");
return 1;
}
Let's see what we done:

And here we're done with the messages.
However, SA-MP 0.3c allows us to create not only messages with multiple colors, but also 3D texts, Dialogs, Vehicle Number Plates.
-I will update soon with all those.-