Chat - 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)
+--- Thread: Chat (
/showthread.php?tid=583715)
Chat -
Fancy - 30.07.2015
Код:
new ChatBubble[MAX_CHATBUBBLE_LENGTH+1];
new Chats[MAX_CHATBUBBLE_LENGTH+1];
format(ChatBubble,MAX_CHATBUBBLE_LENGTH,"%s",text);
format(Chats,MAX_CHATBUBBLE_LENGTH,"%s(%d):%s",Color,GetName(playerid),playerid,text);
SetPlayerChatBubble(playerid,ChatBubble,MESSAGE_COLOR,35.0,10000);
SendClientMessageToAll(0xFFFFFFFF, Chats);
How can i show the player name color?
Re: Chat -
Dan. - 30.07.2015
You have to change the color of your message sent.. you currently have it on white.
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), Chats);
Re: Chat -
SWAT4 - 30.07.2015
Quote:
Originally Posted by Dan.
You have to change the color of your message sent.. you currently have it on white.
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), Chats);
|
I Guess he means change The Player Color only not all the chat ^^ thx
Re: Chat -
Fancy - 30.07.2015
Quote:
Originally Posted by Dan.
You have to change the color of your message sent.. you currently have it on white.
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), Chats);
|
It will set the whole chat color to player name color
Re: Chat -
Dan. - 30.07.2015
Then use this aswell:
pawn Код:
format(Chats,MAX_CHATBUBBLE_LENGTH,"%s(%d):{FFFFFF}%s",Color,GetName(playerid),playerid,text);
The '{FFFFFF}' which is the color code for white, changes the color of the text to white from that point.
Re: Chat -
Fancy - 30.07.2015
Quote:
Originally Posted by Dan.
Then use this aswell:
pawn Код:
format(Chats,MAX_CHATBUBBLE_LENGTH,"%s(%d):{FFFFFF}%s",Color,GetName(playerid),playerid,text);
The '{FFFFFF}' which is the color code for white, changes the color of the text to white from that point.
|
I want the timestamp color also to be white
Re: Chat -
Fancy - 30.07.2015
Help pls
Re: Chat -
sjames - 30.07.2015
Use the search button in the forum
Re: Chat -
Fancy - 30.07.2015
Quote:
Originally Posted by sjames
Use the search button in the forum
|
I already did -_-
Re: Chat -
sjames - 30.07.2015
It seems like you didn't. The thing you want is even on SA-MP wiki.