yanvr Posted April 17, 2012 Posted April 17, 2012 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
DNL291 Posted April 17, 2012 Posted April 17, 2012 you mean this? local message = "#FFFF00is the new winner $60000" outputChatBox("="..getPlayerName().." "..message.."=", getRootElement(), 255, 255, 255, true)
CapY Posted April 17, 2012 Posted April 17, 2012 outputChatBox ( getPlayerName ( source ) .."#FFFF00is the new winner $60000", getRootElement(), 255,255,255, true )
naz19 Posted April 17, 2012 Posted April 17, 2012 (edited) 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 April 17, 2012 by Guest
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