بس غير احداثيات الماركر
local progress = guiCreateProgressBar(463, 582, 348, 43, false)
local Marker = createMarker ( 0, 0, 3, "cylinder", 2, 0, 255, 0, 255 )
addEventHandler ( "onClientMarkerHit", Marker,
function ( player )
if player == localPlayer then
guiProgressBarSetProgress( progress, 0)
time = setTimer ( function()
if guiProgressBarGetProgress( progress ) >= 100 then
killTimer ( time )
time = nil
outputChatBox ( "Welcome", 255, 255, 0, true )
end
guiProgressBarSetProgress( progress, guiProgressBarGetProgress( progress ) + 1 )
end, 50,0 )
end
end)
addEventHandler( 'onClientMarkerLeave', Marker,
function ( player )
if player == localPlayer then
if isTimer ( time ) then
killTimer ( time )
time = nil
end
end
end)