aL.Kfo Posted September 20, 2013 Share Posted September 20, 2013 مرحبا شباب كيفكم نبي كل مبرمج او شخص فاهم في البرمجه يشرح لنا استخدم الكودات ذي لين الحين الوواحد ينزل فنكشات و يقول ذا هو الاي تبي ثم تخش ما تحصل الا كود واحد ولا نسخته و نزلته و قلت ذأ هو صح قالو تنسخ و تلصق طيب وش اخذ ب التحديد من الويكي مثلا يله نقول https://wiki.multitheftauto.com/wiki/GetMarkerColor ذا الويكي مافيه الاا اول شي Syntax ثم -- we define the function that will determine if the player is to be healed or killed function healOrKill ( hitMarker, matchingDimension ) -- if the marker was in a different dimension, stop here to ignore the event if not matchingDimension then return end -- get the marker's color local R, G, B, A = getMarkerColor( hitMarker ) -- if its RGB color is 255,255,255 (white), if R == 255 and G == 255 and B == 255 then -- heal the player setElementHealth( source, 100 ) -- if it isn't white, but 255,0,0 (red), elseif R == 255 and G == 0 and B == 0 then -- kill the player killPed( source ) end end -- add our function as a handler to "onPlayerMarkerHit" addEventHandler( "onPlayerMarkerHit", getRootElement(), healOrKill ) يعني الحين وش نستخدم من ذولا لين مافيه الا ذولا او انه مو كود ذا مثال او وش يعني [لين مافيه شرح ب المنتدى كامل عن ذا الشي [ع حسب علمني انا او احد يشرح لك العلامات - ناقص = يساوي ومدري وش واصلن مافيه شرح لتركيب الكودات ووين تحطها انا حاليا افرفر الصفحه ذي https://wiki.multitheftauto.com/wiki/Cl ... _functions و اركب كود كود ولا واحد ضبط معي اتمنى الردود مفيدةة Link to comment
кιηg-αвα∂у Posted September 20, 2013 Share Posted September 20, 2013 مقدمة في البرمجة https://wiki.multitheftauto.com/wiki/Sc ... troduction باللغة العربية https://wiki.multitheftauto.com/wiki/Sc ... troduction Link to comment
aL.Kfo Posted September 20, 2013 Author Share Posted September 20, 2013 مقدمة في البرمجةhttps://wiki.multitheftauto.com/wiki/Sc ... troduction باللغة العربية https://wiki.multitheftauto.com/wiki/Sc ... troduction كلها ب الانجلينزي كل ما طلب احد شرح جبتو له شرح شخص اجنبي انا احيان افرفر منتدى الاجانب و اترجم ب جوجو كروم ما عمري شفت اجنبي طلب شي و جابو له شرح شخص عربي ^ يكفي ان قسم الشروحات عندنا نايم مثلا ليه م يتكرم مبرمج و يصور لنا فديو و هو يبرمج Link to comment
TAPL Posted September 20, 2013 Share Posted September 20, 2013 الفنكشن هذا يجيب لك لون الماركر int, int, int, int getMarkerColor ( marker theMarker ) int تشوف ان في 4 هذولا عباره عن رقم بين 0 -255 Returns four ints corresponding to the amount of red, green, blue and alpha (respectively) of the marker, false if invalid arguments were passed. لما تجي تستخدم الفنكشن تسوي كذا local r, g, b, a = getMarkerColor(theMarker) ايش الي انت مو فاهمه بالضبط؟ Link to comment
aL.Kfo Posted September 20, 2013 Author Share Posted September 20, 2013 الاي مو فامهم لا طلبت شي و اعطوني فنكشات كيف اخليها كود جاهز و اقدر استعمله وكيف اعرف ذا احطه script.lua ولا server.lua لين احيان اجرب كذا واذا م ضبط جربت كذا و ابي اعرف كيف ذا المود يحتاج احطه في مجلد او احطه في zlp يعني بالضبط ذا https://wiki.multitheftauto.com/wiki/GuiCreateWindow كيف اخليه كود جاهز للاستخدم Link to comment
TAPL Posted September 20, 2013 Share Posted September 20, 2013 كل كود مكتوب هل هو سيرفر ام كلينت او كلينت و سيرفر تشوف فوق مثلاً مكتوب Client-only function يعني بس كلينت يعني يجي بالكلينت و بالسيرفر Client and Server function او بس طبعاً الكود مو دايم يكون نفسه بالضبط في الكلينت و السيرفر لان المتطلبات حق الكود تختلف من الكلينت إلى السيرفر بالنسبة للكود حق النافذه الي انت حاطه هذا بس كلينت لما تفتح الرابط بتلقاه كاتب لك كذا element guiCreateWindow ( float x, float y, float width, float height, string titleBarText, bool relative ) و تحت كاتب لك شرح لكل الكلام x: A float of the 2D x position of the GUI window on a player's screen. This is affected by the relative argument. y: A float of the 2D y position of the GUI window on a player's screen. This is affected by the relative argument. width: A float of the width of the GUI window. This is affected by the relative argument. height: A float of the height of the GUI window. This is affected by the relative argument. titleBarText: A string of the text that will be displayed in the title bar of the window. relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize. x: يعني مكان النافذه بالشاشة بالعرض y: يعني مكان النافذه بالشاشة بالطول width: هذا عرض النافذه height: هذا طول النافذه titleBarText: هذا عنوان النافذه او الكلام الي يجي فوق relative: للأرقام العادية false هذا نوع الرقم الي راح تستخدمه في العرض و الطول بالعادة نحط طبعاً تلاحظ ان في كلام اخضر هذا معناته نوع الشي الي راح تحطه float: هذا رقم يكون ممكن تحط فيه بوينتات يعني مثل 100.56789 string: "Hello" هذا يكون كلام او رقم نصي يعني مثلاً int: هذا رقم بس بدون بوينتات مثل 100 bool: false او true هنا تحط مثال على استخدام الكود local window = guiCreateWindow(200, 250, 300, 350, "العنوان هنا", false) Link to comment
aL.Kfo Posted September 20, 2013 Author Share Posted September 20, 2013 راح اجرب و اشوف مع اني طرحت ذا الكود مني محتاجه بس افرفر و نزلت ذا اتعلم عليه و راح اجربه الحين Link to comment
aL.Kfo Posted September 20, 2013 Author Share Posted September 20, 2013 طيب اشرح لي ذا https://wiki.multitheftauto.com/wiki/GetElementData Link to comment
فاّرس Posted September 20, 2013 Share Posted September 20, 2013 هذا يجيب لك الداتا يعني الشيء الي حفظته في, setElementData Link to comment
aL.Kfo Posted September 21, 2013 Author Share Posted September 21, 2013 ذا بيست جيب لي فنكشات ل مهمات او ظائف كل م نزلت فنكشات صار مثل م تقول انت او مثل ما قال تابل ابي فنكش احاول فيه 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