MiniGoveya Posted September 24, 2010 Share 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 Link to comment
50p Posted September 24, 2010 Share 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. Link to comment
MiniGoveya Posted September 24, 2010 Author Share 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? Link to comment
Castillo Posted September 24, 2010 Share Posted September 24, 2010 function hey ( playerSource, command ) outputChatBox ( "#808080< #00FFFF"..getPlayerName( playerSource ).."> #808080Says Heeeeeeeeyyy!!!!", getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "hey", hey ) Link to comment
MiniGoveya Posted September 24, 2010 Author Share Posted September 24, 2010 Ohhhhhhhh! Thanks you so much man ! you're big man and big scripter Link to comment
dzek (varez) Posted September 24, 2010 Share 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.. Link to comment
Castillo Posted September 24, 2010 Share 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) Link to comment
50p Posted September 24, 2010 Share 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. Link to comment
MiniGoveya Posted September 24, 2010 Author Share 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. ;] Link to comment
Castillo Posted September 24, 2010 Share 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. Link to comment
MiniGoveya Posted September 24, 2010 Author Share Posted September 24, 2010 No problem bro Link to comment
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