You want to use it after the marker color has been set? if so:
local topdeck = createMarker( 170, 255, 9.5, 'cylinder', 2.0, 255, 255, 255, 100 )
addEvent ( 'changecolor1topdeck', true )
addEventHandler ( 'changecolor1topdeck', getRootElement( ),
function ( )
if ( getElementType ( source ) == "player" ) then
local nR, nG, nB = getTeamColor ( getPlayerTeam ( source ) )
setMarkerColor ( topdeck, nR, nG, nB, 100 )
nana ( )
end
end
)
function nana ( )
local r1, g1, b1, a1 = getMarkerColor ( topdeck )
if ( r1 == 0 and g1 == 255 and b1 == 0 ) then
outputChatBox ( '#FF0000[iNFO]: LOL Fail.', root, 255, 255, 255, true )
end
end