Chat colors
#1

Hey how do set a color to a group of people?
exp:
Cops are blue
Truckers are Yellow
Bus Drivers are Green
etc etc

So when they speak, every bus drivers text and name shows up in a certain color? Am i making since? lol thanks
Reply
#2

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

((LVDM has it check LVDM.))
Reply
#3

If its so easy why doesnt everyone do it? :P
Reply
#4

Quote:
Originally Posted by Georgelopez1
Посмотреть сообщение
If its so easy why doesnt everyone do it? :P
Cause not everyone needs this.
Reply
#5

If you are talking about global chat ( I think LVDM uses global chat ) then there may be a function in your script like this
pawn Код:
LimitGlobalChatRadius(100.0);
If this is the case, then it is likely the script uses something like SendPlayerMessageToAll, or SendPlayerMessageToPlayer.
I believe this method will display the players name in the players color as mentioned above.
I don't use this system so someone else might have to help you.

Otherwise look under OnPlayerText, if there is a function that sends the chat to the players then you should be able to alter it to change the color depending on the players team.

If you specify here how your chat system is scripted I can help you further.
Reply


Forum Jump:


Users browsing this thread: