Keys in ClientMessage
#1

There are keys for GameText example: ~k~~PED_DUCK~
but how can i use keys in ClientMessage?
Reply
#2

You need the defines

Код:
#define 				white 								"{FFFFFF}"
#define 				lightblue 							"{33CCFF}"
#define                 grey                                "{AFAFAF}"
#define                 orange                              "{FF8000}"
#define                 black                               "{2C2727}"
#define                 red                                 "{FF0000}"
#define                 yellow                              "{FFFF00}"
#define                 green                               "{33CC33}"
#define                 blue                                "{0080FF}"
#define                 purple                              "{D526D9}"
#define                 pink                                "{FF80FF}"
#define                 brown                               "{A52A2A}"
#define 				lime                                "{88AA62}"
example

Код:
SendClientMessage(playerid, -1, ""red"[TEST] "orange"this message is orange");
Reply
#3

Don't mind SecretBoss, he's lost somewhere.
For such keys, according to this list just use them as-is (depending whether the player is on-foot or in vehicle), just put "~k~KEY_WHATEVER~" in your message (ofc replacing KEY_WHATEVER with the actual key reference on that list), and it should work!
Reply
#4

I don't think you can get the keys into you Client Message unless you write something you like: 'Your fire key (default LMB).
Reply
#5

@shadowdog, of course you can if they are configured under "Redefine controls" menu.
Reply
#6

That is for gametexts. You can try it in Client Messages but I'm not sure if that would work.
Reply
#7

Quote:
Originally Posted by shadowdog
Посмотреть сообщение
That is for gametexts. You can try it in Client Messages but I'm not sure if that would work.
Don't post things you didn't try, it isn't only for gametexts. I am telling you that YOU CAN use it in client messages too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)