ماجات الدوائر
markerTable = {
[1] = {1815,1775.0999755859,7,1.5},
[2] = {1779.6999511719,2226.6999511719,5.3000001907349,7.0},
[3] = {1816.3000488281,2228.1000976563,7.0},
[4] = {1778.3000488281,2014.3000488281,4.6999998092651,7.0},
[5] = {1816.1999511719,2010.0999755859,4.6999998092651,7.0},
[6] = {1778.3000488281,1975.8000488281,5.1999998092651,7.0},
[7] = {1815.5999755859,1911.5,6.5,7.0},
[8] = {1778.6999511719,1886.6999511719,6.8000001907349,7.0},
[9] = {1779.30004882811,1766.0999755859,6.8000001907349,7.0},
[10] = {1779.1688.9000244141,6.9000000953674,7.0},
[11] = {1814.4000244141,1652.3000488281,6.9000000953674,7.0},
[12] = {1815.3000488281,1492,7.0999999046326,7.0},
[13] = {1779.4000244141,1395.5999755859,6.8000001907349,7.0},
[14] = {1779.4000244141,1395.5999755859,6.8000001907349,7.0},
[15] = {1813.9000244141,1377.3000488281,6.8000001907349,7.0},
[16] = {1778.4000244141,1315.3000488281,6.9000000953674,7.0},
[17] = {1815.5,1294.8000488281,6.8000001907349,7.0},
[18] = {1779,1218.6999511719,6.8000001907349,7.0},
[19] = {1814.9000244141,1214.4000244141,6.8000001907349,7.0},
[20] = {1778.0999755859,1144,6.9000000953674,7.0},
[21] = {1817.5,1078.0999755859,6.9000000953674,7.0},
}
for id,i in ipairs(markerTable) do
local marker = createMarker(i[1], i[2], i[3], "checkpoint", i[4], 255,255,0,170)
addEventHandler("onMarkerHit", marker,
function(hitElement)
if (getElementType(hitElement) == "player") then
local vehicle = getPedOccupiedVehicle(hitElement)
local vx, vy, vz = getElementVelocity(vehicle)
local mph = math.floor(math.sqrt(vx^2 + vy^2 + vz^2) * 161)
if (mph >= 35) then
givePlayerMoney(hitElement,50)
outputChatBox("لقد كسبت المال",hitElement,255,255,0)
end
end
end)
end