Jump to content

outputChatBox


yanvr

Recommended Posts

hello i have created a script whit a marker colour.. when a player enters the hidden marker wins. that's OK.

Now need help:

I can only create this in the outputChatBox:

=the new winner $60000=

How to add a playernick winner in the chatbox text? example:

=YANVAR is the new winner $60000=

the codes:

local message = "#FFFF00is the new winner $60000"

local outPutMsg = outputChatBox(message, getRootElement(), red, green, blue, useHTMLcolors)

can anyone help me please?

sorry for my bad english

Link to comment

if it is inside event 'onClientMarkerHit', u can get player that entered into marker

example:

addEventHandler ( 'onClientMarkerHit', root,  
    function ( player )  
        if ( source == varMarker ) then -- replace varMarker by your marker variable  
             outputChatBox ( getPlayerName ( player ) .. ' #FFFF00is the new winner! Received: $600000', root, 255, 255, 255, true );  
        end  
    end  
) 

Edited by Guest
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...