function WMarker(he, md)
if not md then return end
if he ~= localPlayer then return end
if not getElementData(source, "Egzamin") then return end
if not getPedOccupiedVehicle(localPlayer) then return end
if postep == #tablica then
if getElementType(he) == "player" then
local auto = getPedOccupiedVehicle(he)
destroyElement(auto)
end
destroyElement(source)
return end
destroyElement(source)
postep = postep + 1
local x,y,z = tablica[postep][1], tablica[postep][2], tablica[postep][3]
local marker = createMarker(x,y,z, "checkpoint", 3, 255, 0, 0, source)
setElementData(marker, "Egzamin", true)
end