faisl2002 Posted March 23, 2012 Author Share Posted March 23, 2012 ابي احط مثلا 23 دايرة شلون ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ونفس السعر ونفس كل شي Link to comment
faisl2002 Posted March 23, 2012 Author Share Posted March 23, 2012 createMarker ابغا اكثر من وحدة ابغا 23 مثلا 23 علامة كلها بنفس الوظيفة Link to comment
TAPL Posted March 23, 2012 Share Posted March 23, 2012 markerTable = { [1] = {1000,1000,30,7.0}, [2] = {1500,1000,30,7.0}, [3] = {2000,2000,30,7.0}, [4] = {3000,1500,30,7.0}, [5] = {4000,1000,30,7.0}, [6] = {2000,1000,30,7.0}, [7] = {3000,2000,30,7.0}, [8] = {1000,2000,30,7.0}, [9] = {1000,1500,30,7.0}, [10] = {1700,1500,30,7.0}, [11] = {1700,1500,30,7.0}, [12] = {1700,1500,30,7.0}, [13] = {1700,1500,30,7.0}, [14] = {1700,1500,30,7.0}, [15] = {1700,1500,30,7.0}, [16] = {1700,1500,30,7.0}, [17] = {1700,1500,30,7.0}, [18] = {1700,1500,30,7.0}, [19] = {1700,1500,30,7.0}, [10] = {1700,1500,30,7.0}, [20] = {1700,1500,30,7.0}, [21] = {1700,1500,30,7.0}, [22] = {1700,1500,30,7.0}, [23] = {1700,1500,30,7.0}, } for id,i in ipairs(markerTable) do local marker = createMarker(i[1], i[2], i[3], "cylinder", 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 >= 180) then givePlayerMoney(hitElement,1000) outputChatBox("You Won $1000",hitElement,255,255,0) end end end) end Link to comment
faisl2002 Posted March 23, 2012 Author Share Posted March 23, 2012 ماجات الدوائر 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 Link to comment
TAPL Posted March 24, 2012 Share Posted March 24, 2012 حبيبي الكود الي أنا حطيته مجربه و شغال 100% يعني شف الخطأ منك cylinder في الكود الي أنا حاطه نوع الدائرة checkpoint الكود الي أنت حاطه نوع الدائرة و الخطأ هو أنك حاط نقطه زياده في السطر رقم 11 [10] = {1779.1688.9000244141,6.9000000953674,7.0}, لاحظ الرقم 1779.1688.9000244141 فيه نقطتين ---------- لك 3 أيام على هالمود ذا هههههههههه ---------- Link to comment
faisl2002 Posted March 24, 2012 Author Share Posted March 24, 2012 خخخخخخخخ اي والله لي 3 ايام لاني توني ادخل عالم البرمجة وابي امثال واكواد دورت بالويكي دخت حبتين عالعموم تعبتكم والله يوفقكم ويرزكم ويباركم فيكم Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now