Changing Text Color
#1

How do i change the color of this

Код:
	if(strcmp(cmd, "/help", true) == 0) {
		SendPlayerFormattedText(playerid,"Lasto RolePlay V.0 Beta :.",0);
		SendPlayerFormattedText(playerid,"/cmd : Commands List",0);
		SendPlayerFormattedText(playerid,"/givecash [playerid] [money-amount] to send money to other players.",0);
		SendPlayerFormattedText(playerid,"/pm [playerid] [message] : Send a Private Message to a user.", 0);
  return 1;
Reply
#2

Use SendClientMessage

SendClientMessage(playerid, PUT_YOUR_COLOR_HERE, "text");
Reply
#3

in PUT_YOUR_COLOR_HERE i put Blue or the code like 0xFFFFFFAA ?
Reply
#4

Put this on top of your script:

pawn Код:
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_BLACK 0x000000AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_ORANGE 0xFF9900AA
Now you can use SendClientMessage(playerid, COLOR_ORANGE, "Hai");
Reply
#5

why this doesn't work
Код:
SendClientMessage(playerid, 0x33CCFFAA, "Welcome to Lasto RolePlay V.0 Beta, For help type /help.", 0);
	SendClientMessage(playerid, 0x33CCFFAA, "Please register before spawning /register", 0);
Reply
#6

Quote:
Originally Posted by Smiths
why this doesn't work
Код:
SendClientMessage(playerid, 0x33CCFFAA, "Welcome to Lasto RolePlay V.0 Beta, For help type /help.", 0);
	SendClientMessage(playerid, 0x33CCFFAA, "Please register before spawning /register", 0);
Try this

Код:
SendClientMessage(playerid, 0x33CCFFAA, "Welcome to Lasto RolePlay V.0 Beta, For help type /help.");
SendClientMessage(playerid, 0x33CCFFAA, "Please register before spawning /register");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)