MiniGoveya Posted September 24, 2010 Posted September 24, 2010 (edited) Hello MTA Community, I created a script of commands for the MTA, but when I put the hex code for the color of the message does not change color, is the same color, ie no change. What should I do? Here I give a part of the script to tell me I did wrong. function hey ( playerSource, command ) outputChatBox("'"..getPlayerName( playerSource ).." Heeey!!!""getRootElement(), 255, 242, 0, true ) end addCommandHandler ( "hey", hey ) another thing, I want when the command run, the message says this: <088A85MiniGoveya> Says Heeeyy! How I can make that happen? Fist NOTE: I want the message with color yellow. Help me please. Second NOTE: Not if the code is there, is correct. If not, please put what it is. Edited September 24, 2010 by Guest
50p Posted September 24, 2010 Posted September 24, 2010 I don't see any hexadecimal numbers in here. Could you tell me which line has hexadecimal number because I think I'm blind? Remember to read wiki and try to understand how hex coloured text works. https://wiki.multitheftauto.com/wiki/OutputChatBox it's right at the top.
MiniGoveya Posted September 24, 2010 Author Posted September 24, 2010 Ok, sorry, I changed that and stay this way: function hey ( playerSource, command )outputChatBox ( "#808080< "#00FFFF..getPlayerName( playerSource ).."> #808080Says Heeeeeeeeyyy!!!!", getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "hey", hey ) But, this happens: I was wrong again?
Castillo Posted September 24, 2010 Posted September 24, 2010 function hey ( playerSource, command ) outputChatBox ( "#808080< #00FFFF"..getPlayerName( playerSource ).."> #808080Says Heeeeeeeeyyy!!!!", getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "hey", hey )
MiniGoveya Posted September 24, 2010 Author Posted September 24, 2010 Ohhhhhhhh! Thanks you so much man ! you're big man and big scripter
dzek (varez) Posted September 24, 2010 Posted September 24, 2010 calling someone big scripter for creating script doing outputChatBox? wow.. this is probably the very first command everyone is trying out..
Castillo Posted September 24, 2010 Posted September 24, 2010 calling someone big scripter for creating script doing outputChatBox? wow.. this is probably the very first command everyone is trying out.. lol, thats right. that command is really easy to make (even a noob can)
50p Posted September 24, 2010 Posted September 24, 2010 ...lol, thats right. that command is really easy to make (even a noob can) Last part of your sentence is void. It doesn't seem to be true.
MiniGoveya Posted September 24, 2010 Author Posted September 24, 2010 Oh well, excuse me for being noob -.- just came here to ask for help, and if I'm not as experienced in scripting as you forgive me. to say goodbye, I thank whoever is the way I want. : S Solid thank u so much. ;]
Castillo Posted September 24, 2010 Posted September 24, 2010 Oh well, excuse me for being noob -.- just came here to ask for help, and if I'm not as experienced in scripting as you forgive me.to say goodbye, I thank whoever is the way I want. : S Solid thank u so much. ;] I'm sorry if i insulted you, that wasn't my intention.
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