Jump to content

Commands..!


MiniGoveya

Recommended Posts

Posted (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 by Guest
Posted

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.

Posted

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:

errorvcq.jpg

I was wrong again?

Posted
function hey ( playerSource, command ) 
outputChatBox ( "#808080< #00FFFF"..getPlayerName( playerSource ).."> #808080Says Heeeeeeeeyyy!!!!", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler ( "hey", hey ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

calling someone big scripter for creating script doing outputChatBox? wow.. this is probably the very first command everyone is trying out..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
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)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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. ;]

Posted
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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...