Posts: 160
Threads: 40
Joined: Jul 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?
Posts: 160
Threads: 40
Joined: Jul 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
Posts: 160
Threads: 40
Joined: Jul 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
Posts: 160
Threads: 40
Joined: Jul 2015
Posts: 160
Threads: 40
Joined: Jul 2015
Quote:
Originally Posted by sjames
Use the search button in the forum
|
I already did -_-
Posts: 68
Threads: 26
Joined: Jul 2015
Reputation:
0
It seems like you didn't. The thing you want is even on SA-MP wiki.