م فهمت انت وش تقصد او وش تبي بالضبط لكن خذ ذا الكود ضيف الي تبيه عدل عليه انت
local theMark = createMarker (x,y,z,"cylinder",1.5,255,255,0,170)
function onMarkHit(element)
if getElementType(element) == 'player' then
outputChatBox("احفظ هذا رقم واكتب في شات رقمك ".. math.random(1,3).."",root,255,255,255,true)
end
end
addEventHandler("onMarkerHit",theMark,onMarkHit)
addEventHandler("onPlayerChat",root,function (msg,msgt)
if isElementWithinMarker(source,theMark) then
if msg == "1" then -- اذا كتب رقم 1
elseif msg == "2" then -- اذا كتب رقم 2
elseif msg == "3" then -- اذا كتب رقم 3
end
end
end
)