SA-MP Forums Archive
[HELP]Change F6 chat 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: [HELP]Change F6 chat color (/showthread.php?tid=110519)



[HELP]Change F6 chat color - KfirRP - 27.11.2009

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!


Re: [HELP]Change F6 chat color - kukars22 - 27.11.2009

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



Re: [HELP]Change F6 chat color - KfirRP - 27.11.2009

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


Re: [HELP]Change F6 chat color - KKashimia - 27.11.2009

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.



Re: [HELP]Change F6 chat color - Jakku - 27.11.2009

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.


Re: [HELP]Change F6 chat color - kukars22 - 27.11.2009

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.


Re: [HELP]Change F6 chat color - KfirRP - 27.11.2009

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


Re: [HELP]Change F6 chat color - Daren_Jacobson - 27.11.2009

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


Re: [HELP]Change F6 chat color - Dak_Cobain - 27.11.2009

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.



Re: [HELP]Change F6 chat color - KfirRP - 27.11.2009

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