SetObjectMaterialText
#1

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...
Reply
#2

Bump
Reply
#3

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

How come other servers have this
Reply
#5

"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}"
Reply
#6

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

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
Reply
#8

Doesn't work :/
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)