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



SetObjectMaterialText - Ananisiki - 04.04.2014

Is it possible to add colors via the command ?

I try to add like {FF5566} or something else but it doesnt work, it appears white all the time...


Re: SetObjectMaterialText - Ananisiki - 06.04.2014

Bump


Re: SetObjectMaterialText - ikey07 - 06.04.2014

He ask to use "{ffffff}Text" when you set text on the object, and I guess it doesnt work.


Re: SetObjectMaterialText - Ananisiki - 08.04.2014

How come other servers have this


Re: SetObjectMaterialText - Binx - 08.04.2014

"other server have this" because when they need help, they show their code. Therefore, it gets fixed.

If you don't know where to add these, don't script.

Examples:
pawn Код:
#define                     COL_GREY                            "{AFAFAF}"
#define                     COL_RED                             "{AA3333}"
#define                     COL_ORANGE                          "{FF8000}"
#define                     COL_YELLOW                          "{FFFF00}"
#define                     COL_GREEN                           "{33AA33}"
#define                     COL_LIGHTGREEN                      "{9ACD32}"
#define                     COL_CYAN                            "{40FFFF}"
#define                     COL_PURPLE                          "{C2A2DA}"
#define                     COL_BLACK                           "{000000}"
#define                     COL_WHITE                           "{FFFFFF}"



Re: SetObjectMaterialText - Ananisiki - 09.04.2014

I added it and i do /to 19482 {95EDAA}test and it is still white


Re: SetObjectMaterialText - Mriss - 09.04.2014

DO this for example

""COL_RED"TestTextRED:"COL_WHITE"WHoo Its white again!"

Get teamviewer and Ill teach u if u want, PM me the details


Re: SetObjectMaterialText - Ananisiki - 09.04.2014

Doesn't work :/


Re: SetObjectMaterialText - Pottus - 09.04.2014

SetObjectMaterialText uses ARGB put FF at the start of all hex values ex.

"{FFAFAFAF}"

It's important to do this otherwise your going to have issues.


Re: SetObjectMaterialText - Ananisiki - 09.04.2014

Color still dont appear....

pawn Код:
#define COL_GREY "{FFAFAFAA}"
#define COL_GREEN "{FFFF0000}"
#define COL_RED "{FF0000AA}"
#define COL_LIGHTRED "{FF3333AA}"
#define COL_YELLOW "{FFFF00AA}"
#define COL_WHITE "{FFFFFFAA}"
#define COL_BLUE "{FF00BBAA}"
#define COL_LIGHTBLUE "{FFCCFFAA}"
#define COL_ORANGE "{FF9900AA}"
and so on..

ive tried
pawn Код:
/to 19482 {FFCCFFAA}test
/to 19482 "COL_LIGHTBLUE"test