Changing the color of sendclientmessage? not what u think just read the question lol
#1

i think i seen people sendclientmessage where the words are diff colors i not talking about
makin each color of the sendclient different
im talkin about making the words diff colors in the same sendclientmessage

Thankyou!
Reply
#2

Well theres a new emb in samp 0.3c, you need to just do tis

SendClientMessage(playerid, 0x0, "{(HEX_NUMBER)} Welcome to {(HEX_NUMBER)} ...");

Predefined colours can just be like

SendClientMessage(playerid, 0x0, "" COL_RED" Welcome to "COL_BLUE" ...");
Reply
#3

thanks bro
Reply
#4

didnt work?
Reply
#5

Take a look at this.


Then, choose a colour you want, and copy & paste it to:

pawn Код:
SendClientMessage(playerid, RandomColour, "{RED}SERVER: {BLUE}You can't use this command!");
//-----------------------------------------HERE----------HERE--------------------------------//
SERVER: You can't use this command!
Reply
#6

it didnt work bro?
Reply
#7

C:\Users\Legit_V20\Desktop\GTASanAndreas\filterscr ipts\dropgun.pwn(116) : error 017: undefined symbol "RandomColour"
C:\Users\Legit_V20\Desktop\GTASanAndreas\filterscr ipts\dropgun.pwn(140) : error 017: undefined symbol "RandomColour"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.



i did exactly what u said is there a filterscript or somethin?
Reply
#8

Quote:
Originally Posted by Legit_V20
Посмотреть сообщение
C:\Users\Legit_V20\Desktop\GTASanAndreas\filterscr ipts\dropgun.pwn(116) : error 017: undefined symbol "RandomColour"
C:\Users\Legit_V20\Desktop\GTASanAndreas\filterscr ipts\dropgun.pwn(140) : error 017: undefined symbol "RandomColour"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.



i did exactly what u said is there a filterscript or somethin?

use theses

Код:
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFAF00}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{00C0FF}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE          "{A3E4FF}"
#define COL_RULE           "{F9E8B7}"
#define COL_RULE2          "{FBDF89}"
#define COL_RWHITE         "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_LRED2          "{C77D87}"
and for example

SendClientMessage(playerid, 0x33CCFFAA, "{FFA1A1}Test{FF00EA}Message");
Reply
#9

Quote:
Originally Posted by hadzx
Посмотреть сообщение
use theses

Код:
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFAF00}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{00C0FF}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE          "{A3E4FF}"
#define COL_RULE           "{F9E8B7}"
#define COL_RULE2          "{FBDF89}"
#define COL_RWHITE         "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_LRED2          "{C77D87}"
and for example

SendClientMessage(playerid, 0x33CCFFAA, "{FFA1A1}Test{FF00EA}Message");
Wouldn't it be easier to use it like this?
pawn Код:
SendClientMessage(playerid, 0x33CCFFAA, "Original colour. "COL_RULE"Colour rule. "COL_BLUE"Colour blue.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)