anksel Posted February 10, 2012 Posted February 10, 2012 Hey people i need help I Wan't make in a script if the have a tag XX| are in cyan color Anyone can say me how i can do it? Ty alot
drk Posted February 10, 2012 Posted February 10, 2012 What? oO Can you speak english? D: I can't understand anything.
anksel Posted February 10, 2012 Author Posted February 10, 2012 I've a script,i want do if a player have tag XX| the XX| are in a color (RGB)
drk Posted February 10, 2012 Posted February 10, 2012 if the player have tag XX the name of player will be cyan color? if it's: addEventHandler('onPlayerJoin',root, function() if string.find(getPlayerName(source),'XX') then setPlayerName(source,'#99ffffXX|'..getPlayerFromName(source)) end end) I think it's wrong and I don't know if it's possible to change the player name color.
Castillo Posted February 10, 2012 Posted February 10, 2012 Try this: addEventHandler('onPlayerChat',root, function (msg, msgType) if (msgType == 0 and string.find(getPlayerName(source),'XX|')) then outputChatBox(getPlayerName(source) ..": #FFFFFF".. msg,root,0,255,255,true) end end )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now