[HELP] Text color (little help) - 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] Text color (little help) (
/showthread.php?tid=119802)
[HELP] Text color (little help) -
WThieves - 09.01.2010
Hi everyone!
Here's my problem:
I've got this
Quote:
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s (%d) : %s", sendername, playerid, text);
SendClientMessageToAll(C_DRL ,string);
}
|
And i'm happy it works!
But if i type a text ALL text is blue (C_COP = Blue)
But i only want the name and id to be bleu, so how do i do that??
Re: [HELP] Text color (little help) -
SiJ - 09.01.2010
Quote:
Originally Posted by WThieves
Hi everyone!
Here's my problem:
I've got this
Quote:
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s (%d) : %s", sendername, playerid, text);
SendClientMessageToAll(C_DRL ,string);
}
|
And i'm happy it works!
But if i type a text ALL text is blue (C_COP = Blue)
But i only want the name and id to be bleu, so how do i do that??
|
use SendPlayerMessageToAll(playerid,string);
instead of
SendClientMessageToAll(C_DRL ,string);
Re: [HELP] Text color (little help) -
WThieves - 09.01.2010
Quote:
Originally Posted by SiJ
Quote:
Originally Posted by WThieves
Hi everyone!
Here's my problem:
I've got this
Quote:
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s (%d) : %s", sendername, playerid, text);
SendClientMessageToAll(C_DRL ,string);
}
|
And i'm happy it works!
But if i type a text ALL text is blue (C_COP = Blue)
But i only want the name and id to be bleu, so how do i do that??
|
use SendPlayerMessageToAll(playerid,string);
instead of
SendClientMessageToAll(C_DRL ,string);
|
But that doesn't change the color from white to C_DRL=Grey!!!
Re: [HELP] Text color (little help) -
SiJ - 09.01.2010
Quote:
Originally Posted by WThieves
Quote:
Originally Posted by SiJ
Quote:
Originally Posted by WThieves
Hi everyone!
Here's my problem:
I've got this
Quote:
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s (%d) : %s", sendername, playerid, text);
SendClientMessageToAll(C_DRL ,string);
}
|
And i'm happy it works!
But if i type a text ALL text is blue (C_COP = Blue)
But i only want the name and id to be bleu, so how do i do that??
|
use SendPlayerMessageToAll(playerid,string);
instead of
SendClientMessageToAll(C_DRL ,string);
|
But that doesn't change the color from white to C_DRL=Grey!!!
|
It changed player name to player's color (if u use SetPlayerColor(playerid,C_DRL); )