+Source|> Posted May 22, 2017 Author Posted May 22, 2017 هل من الممكن اني ارسل لاحد المود ويسويها لاني معرفت
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, A7MEDENO said: هل من الممكن اني ارسل لاحد المود ويسويها لاني معرفت جربت اللي سويته لك طيب ؟
#BrosS Posted May 22, 2017 Posted May 22, 2017 (edited) 1 minute ago, A7MEDENO said: هل من الممكن اني ارسل لاحد المود ويسويها لاني معرفت سويتلك الكود ومايحتاج معرفة هذي اشياء سهلة حتى للمبتدئين مثلي Edited May 22, 2017 by #BrosS
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 1 minute ago, #BrosS said: سويتلك الكود ومايحتاج معرفة هذي اشياء سهلة حتى للمبتدئين مثلي سويته حقك ويقولي ان في مشكله في bindKey player at argument
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, #BrosS said: حسبي الله ونعم الوكيل اللهم اني صائم طيب قولي انت وش هو الـ player في المثال حقك bindKey ( player , ... ) ????
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 3 minutes ago, Killer Project said: جربت اللي سويته لك طيب ؟ ذي مفهمتها function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then MoveObject1 ( ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end
#BrosS Posted May 22, 2017 Posted May 22, 2017 1 minute ago, Killer Project said: طيب قولي انت وش هو الـ player في المثال حقك bindKey ( player , ... ) ???? ي سوبهان الله رحت تفقدت الويكي لقيته نفس الطريقة function funcInput ( player, bindKey ( player, "F1", "down", funcInput )
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, #BrosS said: ي سوبهان الله رحت تفقدت الويكي لقيته نفس الطريقة function funcInput ( player, bindKey ( player, "F1", "down", funcInput ) مب لازم المثال اللي بالويكي يكون صحيح .. الحين روح جربها وقول وش يطلع لك بالدي بق وخصوصاً ان اللي مسوي المثال هدفه شرح فقط .. عليك انت تسوي الارجمنت الاول من الكود
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 1 minute ago, Killer Project said: مب لازم المثال اللي بالويكي يكون صحيح .. الحين روح جربها وقول وش يطلع لك بالدي بق وخصوصاً ان اللي مسوي المثال هدفه شرح فقط .. عليك انت تسوي الارجمنت الاول من الكود انت محق انا جربته قالي في الديبق player at argument المهم الان هل ارسل المود لحد ول وش اسوييييي؟
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, A7MEDENO said: انت محق انا جربته قالي في الديبق player at argument المهم الان هل ارسل المود لحد ول وش اسوييييي؟ هل كودي ما اشتغل ؟ وهل اشتغل بس مب فاهمه ؟ yourObject = createObject ( ... ) function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then moveObject ( yourObject, ... ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 Just now, Killer Project said: هل كودي ما اشتغل ؟ وهل اشتغل بس مب فاهمه ؟ مب فاهمه مدري اشتغل ام لا!
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, A7MEDENO said: مب فاهمه مدري اشتغل ام لا! yourObject = createObject ( ... ) function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then moveObject ( yourObject, ... ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end اول سطر حق الاوبجكت اللي انت سويته اللي هو الباب على سبيل المثال 1 3 ثاني سطر واللي هو الفنكشن اكيد شي مفهوم 4 واللي بعده سطر التحقق من رتبة اللاعب - سويه بنفسك 5 وبعد التحقق رح يفتح الباب 6 و اللي بعده سطر انهاء التحقق 7 واللي بعده سطر انهاء الفنكشن 9 .. 10 .. 11 اما الثلاث اسطر الاخيرة هي اللوب
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 52 minutes ago, Killer Project said: yourObject = createObject ( ... ) function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then moveObject ( yourObject, ... ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end اول سطر حق الاوبجكت اللي انت سويته اللي هو الباب على سبيل المثال 1 3 ثاني سطر واللي هو الفنكشن اكيد شي مفهوم 4 واللي بعده سطر التحقق من رتبة اللاعب - سويه بنفسك 5 وبعد التحقق رح يفتح الباب 6 و اللي بعده سطر انهاء التحقق 7 واللي بعده سطر انهاء الفنكشن 9 .. 10 .. 11 اما الثلاث اسطر الاخيرة هي اللوب 4 مو فاهمه قلي مثال لاهنت
Master_MTA Posted May 22, 2017 Posted May 22, 2017 43 minutes ago, A7MEDENO said: 4 مو فاهمه قلي مثال لاهنت فهمني يا عسل انت تبي لما اللاعب يكون قريب من البوابه ويضغط اف 1 يفتحله؟ لو كان معه رتبه معينه لو كلامي صح عطني الاحداثيات حقت البوابة وبسويلك الكود كامل مكمل بما اننا داخلين رمضان
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 yourObject = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) الماركر لو تبيه createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) الله يعطيك الف عافيه ابي الباب يفتح من زر تاب لرتبة الشرطي وشكرا لك
Master_MTA Posted May 22, 2017 Posted May 22, 2017 (edited) 19 minutes ago, A7MEDENO said: yourObject = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) الماركر لو تبيه createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) الله يعطيك الف عافيه ابي الباب يفتح من زر تاب لرتبة الشرطي وشكرا لك function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end function isElementInMarker(marker,plr)----by master local elments=getElementsWithinMarker(marker) for k,v in ipairs(elements)do if v==plr then return true end end return false end local marker=createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) local obj = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) function movethedoor(plr) moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853+10) setElementData(plr,'lastmove',true) end function backdoor(plr) if isElementInMarker(marker,plr) then moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853) removeElementData(plr,'lastmove') end end addEventHandler('onMarkerHit',root,function(plr) if getElementType(plr)=='player' and not isPedInVehicle(plr) then if isGuestAccount(getPlayerAccount(plr))then return end if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup ( "Police" ) ) then if not getElementData(plr,'lastmove')==true then bindKey(plr,'tab','down',movethedoor) else bindKey(plr,'tab','down',backdoor) end end end end) اللي بيقول طولتها بقوله ذي افضل طريقه من وجهة نظري كل شخص وله طريقته على العموم يا صاحب الموضوع سويتلك يوزفل فنكشن حلو isElementInMarker على العموم ذا الكود جاهز هديه غير مجرب انسخه والصقه وجربه وباذن الله يزبط Edited May 22, 2017 by Master_MTA
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 1 minute ago, Master_MTA said: function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end function isElementInMarker(marker,plr)----by master local elments=getElementsWithinMarker(marker) for k,v in ipairs(elements)do if v==plr then return true end end return false end local marker=createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) local obj = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) function movethedoor(plr) moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853+10) setElementData(plr,'lastmove',true) end function backdoor(plr) if isElementInMarker(marker,plr) then moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853) removeElementData(plr,'lastmove') end end addEventHandler('onMarkerHit',root,function(plr) if getElementType(plr)=='player' and not isPedInVehicle(plr) then if isGuestAccount(getPlayerAccount(plr))then return end if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup ( "Police" ) ) then if not getElementData(plr,'lastmove')then bindKey(plr,'tab','down',movethedoor) else bindKey(plr,'tab','down',backdoor) end end end end) اللي بيقول طولتها بقوله ذي افضل طريقه من وجهة نظري كل شخص وله طريقته على العموم يا صاحب الموضوع سويتلك يوزفل فنكشن حلو isElementInMarker على العموم ذا الكود جاهز هديه غير مجرب انسخه والصقه وجربه وباذن الله يزبط بجرب بس كنت اعتقده قصير عشان احفظه واتعلم ضض
Master_MTA Posted May 22, 2017 Posted May 22, 2017 Just now, A7MEDENO said: بجرب بس كنت اعتقده قصير عشان احفظه واتعلم ضض هو قصير يقلبي لو بغيت اسويلك كود اي كلام لكن بما اننا داخلين على رمضان سويتلك كود 100%باذن الله مافيه ولا غلطه واذا فيه علمني واصلحها لك اقدر الخصلك الموضوع ذا كله في كم سطر لكني استخدمت يوزفل فنكشن
^iiEcoo'x_) Posted May 22, 2017 Posted May 22, 2017 4 minutes ago, Master_MTA said: function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end function isElementInMarker(marker,plr)----by master local elments=getElementsWithinMarker(marker) for k,v in ipairs(elements)do if v==plr then return true end end return false end local marker=createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) local obj = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) function movethedoor(plr) moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853+10) setElementData(plr,'lastmove',true) end function backdoor(plr) if isElementInMarker(marker,plr) then moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853) removeElementData(plr,'lastmove') end end addEventHandler('onMarkerHit',root,function(plr) if getElementType(plr)=='player' and not isPedInVehicle(plr) then if isGuestAccount(getPlayerAccount(plr))then return end if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup ( "Police" ) ) then if not getElementData(plr,'lastmove')==true then bindKey(plr,'tab','down',movethedoor) else bindKey(plr,'tab','down',backdoor) end end end end) اللي بيقول طولتها بقوله ذي افضل طريقه من وجهة نظري كل شخص وله طريقته على العموم يا صاحب الموضوع سويتلك يوزفل فنكشن حلو isElementInMarker على العموم ذا الكود جاهز هديه غير مجرب انسخه والصقه وجربه وباذن الله يزبط https://wiki.multitheftauto.com/wiki/AR/isElementWithinMarker امتحان الرياضيات ماثر عليك
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 Just now, #_iMr.[E]coo said: https://wiki.multitheftauto.com/wiki/AR/isElementWithinMarker امتحان الرياضيات ماثر عليك هههههه 1
MR.StoRm Posted May 22, 2017 Posted May 22, 2017 2 hours ago, #BrosS said: حسبي الله ونعم الوكيل اللهم اني صائم رمضان لم يبدأ حتى تصوم !
+Source|> Posted May 22, 2017 Author Posted May 22, 2017 6 minutes ago, Master_MTA said: function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end function isElementInMarker(marker,plr)----by master local elments=getElementsWithinMarker(marker) for k,v in ipairs(elements)do if v==plr then return true end end return false end local marker=createMarker(1543.0999755859, -1627.6999511719, 12, "cylinder", 0, 0, 0, 0) local obj = createObject ( 980,1542.900390625,-1627.599609375,14.89999961853,0,0,90 ) function movethedoor(plr) moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853+10) setElementData(plr,'lastmove',true) end function backdoor(plr) if isElementInMarker(marker,plr) then moveObject(obj,500,1542.900390625,-1627.599609375,14.89999961853) removeElementData(plr,'lastmove') end end addEventHandler('onMarkerHit',root,function(plr) if getElementType(plr)=='player' and not isPedInVehicle(plr) then if isGuestAccount(getPlayerAccount(plr))then return end if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup ( "Police" ) ) then if not getElementData(plr,'lastmove')==true then bindKey(plr,'tab','down',movethedoor) else bindKey(plr,'tab','down',backdoor) end end end end) اللي بيقول طولتها بقوله ذي افضل طريقه من وجهة نظري كل شخص وله طريقته على العموم يا صاحب الموضوع سويتلك يوزفل فنكشن حلو isElementInMarker على العموم ذا الكود جاهز هديه غير مجرب انسخه والصقه وجربه وباذن الله يزبط ما اشتغل خلاص مب لازم يعطيكم العافيه
AHMED MOSTAFA Posted May 22, 2017 Posted May 22, 2017 9 hours ago, Master_MTA said: هو قصير يقلبي لو بغيت اسويلك كود اي كلام لكن بما اننا داخلين على رمضان سويتلك كود 100%باذن الله مافيه ولا غلطه واذا فيه علمني واصلحها لك اقدر الخصلك الموضوع ذا كله في كم سطر لكني استخدمت يوزفل فنكشن اكوادك شكلها يخوف ههههههه مدري ليه تسويها كدة صعب احد يفهمها بسهولة 1
Master_MTA Posted May 22, 2017 Posted May 22, 2017 7 minutes ago, #_iMr.[E]coo said: https://wiki.multitheftauto.com/wiki/AR/isElementWithinMarker امتحان الرياضيات ماثر عليك والله ما شفته سويته على العموم يا صاحب الموضوع اهم شي زبط؟ 5 minutes ago, Killer Project said: اكوادك شكلها يخوف ههههههه مدري ليه تسويها كدة صعب احد يفهمها بسهولة والله ما تخوف ولا شي لو تشيلون اليوزفل فنكشن الاثنين اللي فوق بتشوفونها 6 minutes ago, A7MEDENO said: ما اشتغل خلاص مب لازم يعطيكم العافيه لا وش مب لازم لازم يشتغل معك رتبت شرطي وهل انت مسجل ووش يطلعلك بالدي بق معليش شفت بطيخ(حبحب بالسعودي) رحت شقيتها واكلت باك
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