Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler("onClientMarkerHit", resourceRoot, function()
- if source ~= marker then return end
- if getElementDimension(source) ~= getElementDimension(localPlayer) then return end
- if getElementInterior(source) ~= getElementInterior(localPlayer) then return end
- --
- destroyElement(marker)
- marker = false
- destroyElement(blip)
- blip = false
- --
- if pointa == #pointsDriveA then
- if course == "A" then
- ticks.drive = getTickCount()
- gui.drive = false
- ticks.km = getTickCount()
- gui.km = true
- km = 3
- end
- return
- elseif pointb == #pointsDriveB then
- if course == "B" then
- ticks.drive = getTickCount()
- gui.drive = false
- ticks.km = getTickCount()
- gui.km = true
- km = 3
- end
- return
- elseif pointbc == #pointsDriveC then
- if course == "C" then
- ticks.drive = getTickCount()
- gui.drive = false
- ticks.km = getTickCount()
- gui.km = true
- km = 3
- end
- return
- elseif pointd == #pointsDriveD then
- elseif course == "D" then
- ticks.drive = getTickCount()
- gui.drive = false
- ticks.km = getTickCount()
- gui.km = true
- km = 3
- end
- return
- end
- --
- if course == "A" then
- pointa = pointa + 1
- texta = texta + 1
- markera = createMarker(pointsDriveA[pointa][1], pointsDriveA[pointa][2], pointsDriveA[pointa][3] - 0.7, "cylinder", 3, 255, 255, 255, 255)
- blipa = createBlipAttachedTo(markera, 41)
- elseif course == "B" then
- pointb = pointb + 1
- textb = textb + 1
- markerb = createMarker(pointsDriveB[pointb][1], pointsDriveB[pointb][2], pointsDriveB[pointb][3] - 0.7, "cylinder", 3, 255, 255, 255, 255)
- blipb = createBlipAttachedTo(markerb, 41)
- elseif course == "C" then
- pointc = pointc + 1
- textc = textc + 1
- markerc = createMarker(pointsDriveC[pointc][1], pointsDriveC[pointc][2], pointsDriveC[pointc][3] - 0.7, "cylinder", 3, 255, 255, 255, 255)
- blipc = createBlipAttachedTo(markerc, 41)
- elseif course == "D" then
- pointd = pointd + 1
- textd = textd + 1
- markerd = createMarker(pointsDriveD[pointd][1], pointsDriveD[pointd][2], pointsDriveD[pointd][3] - 0.7, "cylinder", 3, 255, 255, 255, 255)
- blipd = createBlipAttachedTo(markerd, 41)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement