S4MuEL Posted June 28, 2013 Posted June 28, 2013 (edited) بسم آلله آلرحمان آلرحيم آلسلآم عليكم ورحمة الله وبركاته كيف حال الشباب ؟ كويسين ؟ دوم يَ رب .. معآنآ آليوم شرح بسيط لـ فنكشن destroyElement نبدأ على بركة الله ~ وش فآئدة هذآ آلفنكشن ؟ - هذآ آلفنكشن يسحب آلإلمنتآت .. ( مآركر ، سيآرة ، آوبجكت ) آلخ .. - كم من آرقمنت موجود بآلفنكشن ؟ 1 .. وآللي هو ~ آلألمنت يلي نبي نسحبه . elementToDestroy .. زي مآ يقول آلسينتآكس بآلويكي bool destroyElement ( element elementToDestroy ) elementToDestroy: The element you wish to destroy. وآضح لـ حد آلأن ؟ ! كويسس .. نجي لـ جزء آلأمثلةة ") marker = createMarker ( ... ) -- نسوي مآركر addEventHandler ( "onMarkerHit", marker, -- آلحدث لمآ ندعس آلمآركر function( player ) -- وظيفةة if ( getElementType ( player ) == "player" ) and not ( isPedInVehicle ( player ) ) then -- نتحقق آن الألمنت يلي لمس آلمآركر هو آللآعب ومآ معه سيآرة destroyElement ( marker ) -- نسحب آلمآركر end -- إنهآء آلشرط end, false -- آنهآء آلوظيفة ) -- آنهآء آلحدث نجي لـ مثآل ثآني ~ addCommandHandler("Destroy", -- كومآند function() -- وظيفةة for _,v in ipairs ( getElementsByType("vehicle") ) do -- نجيب كل آلسيآرآت destroyElement ( v ) -- نسحبهم ، وطبعآ سحبنآهم بآلكومند يلي فوق .. end -- إنهآء آلـجلبآن end) -- آنهآء آلوظيفةة وآلكومآند .. تم آلشرح , ويَ رب فهمتهم .. آللي مآ فهم و يبي مثآل ثآني ، يبشر .. ولآ يردهه آلآ آلكيبورد ' صفحةة الفنكشن .. آرجو آلمرآجعة ، https://wiki.multitheftauto.com/wiki/DestroyElement صفحة آلإلمنتآت آرجو آلمرآجعة آيضآ .. https://wiki.multitheftauto.com/wiki/Element آلفنكشن لآ يحتوي على بآرآمترس آو آي شي .. * * آلفنكشن سيرفر وكلنت .. * تقدر تحط true + false بعد آلأرقمنت آلأول .. true = سحب false = آلسحب مآ يتنفذ ! وآلسلآم عليكم ! Edited July 1, 2013 by Guest
./BlackBird# Posted June 28, 2013 Posted June 28, 2013 مشكور بس حبيت اقولك الفنكشن ما يسحب بل يدمر ^^
S4MuEL Posted June 29, 2013 Author Posted June 29, 2013 مشكوربس حبيت اقولك الفنكشن ما يسحب بل يدمر ^^ ? wiki wrote : This function destroys an element and all elements within it in the hierarchy (its children, the children of those children etc). Player elements cannot be destroyed using this function. A player can only be removed from the hierarchy when they quit or are kicked. The root element also cannot be destroyed, however, passing the root as an argument will wipe all elements from the server, except for the players and clients, which will become direct descendants of the root node, and other elements that cannot be destroyed, such as resource root elements. Players are not the only elements that cannot be deleted. This list also includes remote clients and console elements. جربت آلفنكشن سآبقآ ؟ ومن عنوآنه تعرفه ! destroyElement
./BlackBird# Posted June 29, 2013 Posted June 29, 2013 مشكوربس حبيت اقولك الفنكشن ما يسحب بل يدمر ^^ ? wiki wrote : This function destroys an element and all elements within it in the hierarchy (its children, the children of those children etc). Player elements cannot be destroyed using this function. A player can only be removed from the hierarchy when they quit or are kicked. The root element also cannot be destroyed, however, passing the root as an argument will wipe all elements from the server, except for the players and clients, which will become direct descendants of the root node, and other elements that cannot be destroyed, such as resource root elements. Players are not the only elements that cannot be deleted. This list also includes remote clients and console elements. جربت آلفنكشن سآبقآ ؟ ومن عنوآنه تعرفه ! destroyElement تعرف انجليزي؟
S4MuEL Posted June 29, 2013 Author Posted June 29, 2013 آيه آعرف .. -_-" آلسؤآل موجهـ لكـ آعتقد ؟ ! Destroy : يعني تدمير بآلإنجليزيه , بس كـ فنكشن بآلأم تي آي , يستعمل للسحب ..
MSHOOSH Posted June 29, 2013 Posted June 29, 2013 آيه آعرف .. -_-"آلسؤآل موجهـ لكـ آعتقد ؟ ! Destroy : يعني تدمير بآلإنجليزيه , بس كـ فنكشن بآلأم تي آي , يستعمل للسحب .. كلامه صحيح 100% اقرب مثال لوحة الادمنية blow -- تفجير السيارة destroy -- سحب السيارة ^ يعطيك العافية على الشرح
K1NG Posted July 1, 2013 Posted July 1, 2013 يعطيكـ العافية على الشرح، رح تفيد المبتدئين كثير .. بس حبيت أنوهـ على شي بسيط بالمثآل الأول marker = createMarker ( ... ) -- نسوي مآركر addEventHandler("onMarkerHit", marker, -- آلحدث عند آلدعس على مآركر function( player ) -- وظيفةة if ( getElementType ( player ) == ( "player" ) ) then -- نتحقق من آن آللي لمس آلمآركر هو آللآعب destroyElement ( marker ) -- نسحب آلمآركر end -- إنهآء آلشرط if end -- إنهآء آلوظيفة ) -- إنهآء آلحدث بآلمثآل يلي فوق ، لمآ تدعس على آلمآركر وآنت كعآبي ينسحب آلمآركر .. أخوي مهو شرط يكون كعابي .. لأنه انت منت مسوي شرط إذا كان اللاعب مهو بداخل سيارة انت فقط متحقق إذا الي لمس الماركر لاعب .. بغض النظر كان كعابي أو بداخل سيارة إذا تبيه شرط ما يكون بداخل سيارة ، يصير كذا كودكـ .. marker = createMarker ( ... ) addEventHandler ( "onMarkerHit", marker, function( player ) if ( getElementType ( player ) == "player" ) and not ( isPedInVehicle ( player ) ) then destroyElement ( marker ) end end, false )
Simba Posted December 14, 2013 Posted December 14, 2013 مني فاهم وش هو السنايتكس شفت اكثثر منن شرح ولاا فهمتت اش وظيفته اش يسوي يعني
فاّرس Posted December 14, 2013 Posted December 14, 2013 السينتاكس هو تركيب الكود كامل, bool destroyElement ( element elementToDestroy ) bool = وللمعلومية هذا ما يكتب بالكود بس يفيدك لا اكثر true , false يعني قيمه منطقيه boolean هذا يعلمك ان القيمه لازم تكون element = هذا يفيدك ان الوظيفه خاصه بالالمنت وصفحه الالمنت هنآ ونفس الكلام مايكتب بالكود elementToDestroy = element هو الالمنت الي تبي تحذفه كيف عرفت انه المنت ؟ كاتب قبله
Crisi# Posted December 25, 2013 Posted December 25, 2013 addEventHandler("onVehicleExplode",root, --يسوي حدث لما تنفجر سياره function() -- الوظيفة setTimer(destroyElement,5000,1,source) -- يخفي السيارة بعد 5 ثواني من انفاجرها end ) مثال بسيط
Mr.R Posted August 23, 2014 Posted August 23, 2014 يعطيك العافيه شرح استفدت منه ، صراحه شرح اكثر من رائع ^^ تقبل مروري ~
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