SA-MP Forums Archive
color lighter - 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: color lighter (/showthread.php?tid=138719)



color lighter - Headshot1108 - 02.04.2010

Hello.
I have a question.
How can I make that my chat color is little lighter than my player color?
My public:

pawn Код:
public OnPlayerText(playerid, text[])
{
  SetPlayerChatBubble(playerid, text, GetPlayerColor(playerid), 100.0, 10000);
  new strtext[128];
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  format(strtext, sizeof(strtext), "%s [%d]: %s", name, playerid, text);
    foreach (Player, i)
    {
    SendClientMessage(i,(GetPlayerColor(playerid), strtext);
  }
    return 0;
}



Re: color lighter - Headshot1108 - 02.04.2010

anyone ?


Re: color lighter - dice7 - 02.04.2010

https://sampwiki.blast.hk/wiki/SendPlayerMessageToPlayer


Re: color lighter - Headshot1108 - 02.04.2010

no you understand me wrong
I like to do that a player who writes a text the text comes in his color but little lighter as his player color.
example: my playercolor is blue, and the text message is than light blue or something, just lighter as the player color.