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

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 ) 

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)

Posted
...

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.

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.

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