Jump to content

Commands..!


MiniGoveya

Recommended Posts

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
Link to comment

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?

Link to comment

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