SA-MP Forums Archive
Changing Text Color - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Changing Text Color (/showthread.php?tid=91355)



Changing Text Color - Smiths - 14.08.2009

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;



Re: Changing Text Color - GTA_Rules - 14.08.2009

Use SendClientMessage

SendClientMessage(playerid, PUT_YOUR_COLOR_HERE, "text");


Re: Changing Text Color - Smiths - 14.08.2009

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


Re: Changing Text Color - GTA_Rules - 14.08.2009

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");


Re: Changing Text Color - Smiths - 14.08.2009

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);



Re: Changing Text Color - Kyle - 14.08.2009

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");