[HELP]Change F6 chat color
#1

Quote:

public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new tmp[256];
new string[256];
new giveplayerid;
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
return 0;

this is the code of the public OnPlayerText. Tell me how i change it from purple to white. Thanks!
Reply
#2

At the top of your script:

Код:
#define COLOR_WHITE 0xFFFFFFAA
And change this line:

Код:
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
to:

Код:
SendClientMessage(playerid, COLOR_WHITE, "You cannot speak, you have been silenced");
Reply
#3

Theres a line with #Define COLOR_WHITE 0xFFFFFFAA
So make more one?
Reply
#4

No, just change

Код:
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
to:

Код:
SendClientMessage(playerid, COLOR_WHITE, "You cannot speak, you have been silenced");
then.
Reply
#5

Quote:
Originally Posted by KKashimia
No, just change

Код:
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
to:

Код:
SendClientMessage(playerid, COLOR_WHITE, "You cannot speak, you have been silenced");
then.
You have to define that COLOR_WHITE.
Reply
#6

Quote:
Originally Posted by Jakku
Quote:
Originally Posted by KKashimia
No, just change

Код:
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
to:

Код:
SendClientMessage(playerid, COLOR_WHITE, "You cannot speak, you have been silenced");
then.
You have to define that COLOR_WHITE.
If you didnt saw, he have already done that.
Reply
#7

Didn't help.
I changed it, it still fuckin' purple.
Reply
#8

are you talking about a players chat? or the message they get when are silenced/muted and try to talk?
Reply
#9

Quote:
Originally Posted by KfirRP
Didn't help.
I changed it, it still fuckin' purple.
Then your COLOR_WHITE define is purple, remove the define and place the one mentioned in this thread.
Reply
#10

player chat!!! When you write F6, its writes [EX:'John_Smith(1) Says: Hi']
i want it to be white. If you dont know, the "(1)" is Player ID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)