colour textdraw - 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: colour textdraw (
/showthread.php?tid=466982)
colour textdraw -
[ADM]Madon - 30.09.2013
How to make colour this ?
pleaze hlp me !
Re: colour textdraw -
Konstantinos - 30.09.2013
This content is currently unavailable. Upload the picture somewhere else. (
imgur.com)
Re: colour textdraw -
CesarLT - 30.09.2013
SendClientMessage(playerid, COLOR_XXX, "Message");
The color XXX stands for any color you'd like to use, but there's a small format.
Go to the top of your script, and do that:
pawn Код:
#define COLOR_RED 0xFF0000FF
Use this:
http://colorpicker.com/ and pick the color of your choise, then copy the color ID.
Go to your script, at the top of that do the example I gave you, but make sure to add '0x', at the beggining of the color, and 'FF', at the end of it.
So it will be like that:
pawn Код:
#define COLOR_XXX 0xCOLORIDFF
Good luck.
Re: colour textdraw -
[ADM]Madon - 30.09.2013
OK thanks bro
Re: colour textdraw -
Konstantinos - 30.09.2013
Exactly the one you wanted!
http://forum.sa-mp.com/showthread.ph...74#post1112874
Re: colour textdraw -
[ADM]Madon - 30.09.2013
oh ty man ,
rep + for you
Re: colour textdraw -
[ADM]Madon - 30.09.2013
....
Re: colour textdraw - Nofear192 - 30.09.2013
See where u see #include <a_samp>
Like this
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
then Down in it Just do
Код:
#define COLOR_GREEN 0x00FF00
#define COLOR_RED 0xFF0000
#define COLOR_BLACK 0x000000
if u want to add other color Just type in ****** that u want this Color Code and do like this be adding it Just add before like that
Код:
#define COLOR_<Should be Caps Color name> <then just for> 0x <add here the code>
if u want to send cilent message ig from script when player join do this server do:
Код:
public OnPlayerConnect(playerid)
{
return 1;
}
Here then Just Add this:
Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_BLACK, "Swan-Off || Ammo - 26");
return 1;
}
if u want to change color just change (playerid, COLOR_and write the color name
if u want to change the message when player spawnn (playerid, COLOR_<any color>, <write here>
Hope I helped u
Re: colour textdraw -
[ADM]Madon - 02.10.2013
example ? man