Jacobob14 Posted May 17, 2014 Share Posted May 17, 2014 what problem the markers is not created gives no error on the console addEvent ( "onPlayerLevelUP", true ) addEventHandler ( "onPlayerLevelUP", root, function ( ) function ( ) local playerTeam = getPlayerTeam( source ) local r, g, b = getTeamColor ( playerTeam ) eX, eY, eZ = getElementPosition( source ) marke = createMarker ( eX, eY+5, eZ ,"corona", 5, r, g, b, 200 ) attachElements ( marke, source ) setTimer( function () destroyElement( marke) end, 6000, 1) end ) Link to comment
xXMADEXx Posted May 17, 2014 Share Posted May 17, 2014 Don't check Console for errors, use /debugscript 3 addEvent ( "onPlayerLevelUP", true ) addEventHandler ( "onPlayerLevelUP", root, function ( ) local playerTeam = getPlayerTeam( source ) local r, g, b = getTeamColor ( playerTeam ) local eX, eY, eZ = getElementPosition( source ) marke = createMarker ( eX, eY+5, eZ ,"corona", 5, r, g, b, 200 ) attachElements ( marke, source ) setTimer( function ( m ) destroyElement( m ) end, 6000, 1, marke) end ) Link to comment
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