#1

Код:
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?
Reply
#2

You have to change the color of your message sent.. you currently have it on white.

pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), Chats);
Reply
#3

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
Reply
#4

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
Reply
#5

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.
Reply
#6

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
Reply
#7

Help pls
Reply
#8

Use the search button in the forum
Reply
#9

Quote:
Originally Posted by sjames
Посмотреть сообщение
Use the search button in the forum
I already did -_-
Reply
#10

It seems like you didn't. The thing you want is even on SA-MP wiki.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)