سلام عليكم
آلحين آنآ آبي لو كتبت كومآند يسوي مآركر , ولو دخلت آلمآركر هآدآ يطلع آسم آلي دخل فيه
آلمشكلة كيف آعرف آلمآركر ؟؟
addCommandHandler("mark",
function ( player )
local x,y,z = getElementPosition( player )
local testMarker = createMarker ( x,y,z -1, "cylinder", 1.5, 255, 255, 0, 170 )
outputChatBox("done create marker",player,0,255,0,true)
end
)
addEventHandler( "onMarkerHit", root,
function( hiter )
if source == testMarker then
outputChatBox(""..getPlayerName(hiter).." joined to marker",root,0,255,0,true)
end
end
)