Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. بس وش دخل هذا بالموضوع؟ اقرآه وتعرف وش دخله ب الموضوع =) هذا يعد الوقت اللي الاعب ما تحرك فيه في اقل من ثانية وش دخله بالموضوع ؟ :\
  2. بس وش دخل هذا بالموضوع؟
  3. ايه صح بس تآكد ان ملف spawn.lua موجود في السكربت
  4. function joinHandler() local x = 1438.6591796875 -- تعريف x local y = -2318.5817871094 -- تعريف y local z = 13.3828125 -- تعريف z spawnPlayer(source, x, y, z) -- يحط الاشياء المتعرفة هنا fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("اهلا بك في سيرفر", source) end addEventHandler("onPlayerJoin", root, joinHandler) الكود صح بس يمديك تختصر على نفسك بـ function joinHandler() spawnPlayer(source, 1438.6591796875, -2318.5817871094, 13.3828125) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("اهلا بك في سيرفر", source) end addEventHandler("onPlayerJoin", root, joinHandler)
  5. هذا ينحط بملف ال meta.xml اللي يتأسس عليه السكربت ..
  6. ما فيه شي اسمه جاهز في المنتدى العربي حنا هنا نصلح لك كوداتك اذا فيها اخطاء تعلم من هنا https://wiki.multitheftauto.com/wiki/Scr ... troduction او الويكي العربي من هنا https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87
  7. استخدم .. : احداث : onClientClick وظايف : banPlayer
  8. سوي جدول من السيارات واتاكد ان السيارة القديمة موجودة , واذا تم التآكد راح تنمسح ..
  9. هاذه بيحذف السيارة لما اطلع انا ابي اخليه لما يرجع تبقى السيارة تبعه يعني يضغط مره ثانية تنسحب ويطلع الجديده وانت تحسب ان هالكود على كل الاعبين ؟ اذا ضغط راح تختفي السيارة الي كان مطلعها اللاعب نفسه من قبل
  10. رح للوحة الادمنية وعدلها
  11. local steb = { ["Hello"] = true , ["Bye"] = true } -- Create a table local inserting = {} -- Create a table local dd = 0 -- Define a variable local count = 0 -- Define a variable for i,v in pairs(steb) do -- Loop the 'steb' table. dd = dd + 1 -- Increase 'dd' variable. table.insert(inserting,i) -- Insert the 'i' value to 'inserting' table. end for i,v in ipairs(inserting) do -- Loop the 'inserting table. count = count + 1 -- Increase the 'count' variable. for x = 1,dd do -- Do a loop from 1 to the value of 'dd' variable. if(count>x)then return end -- If the 'count' variable is higher than 'x', stop the function. inserting[x+1] = v -- Set a new item on 'inserting' table with + 1 as index. end end وبعدين مو أي شي انت تعرفه لازم انا اكون عآرفه كل شخص له حد معين في الخبره . . بالنسبه لـ وش فيها لو سويت يعني هو سهل تآفه اتفه من التآفه لاكن العقول الصغيره تعتقده صعب وانا بصرآحه متعجب مرا لأنه شي مايبيله لاوقت ولاجهد كبير الجهد الكبير في تطبيقه في اكثر من نافذه اي كلام او استفسار تبيه تفضل خآص هنا ماراح اكمل ردي معك . . انا ما قلت اني ماعرف هالاشياء , لاكن مستعجب ..
  12. فيه عدة طرق لحفظ الاشياء SQL - مثل ما قال اخونا عاشق الشرق mySQL XML الابسط لك xml بس الافضل mysql
  13. بالمنطقية كذا ... انت تسوي هالاشياء؟ ثانياً انت كنت تسآل اسالة مالها أي داعي ولا يبيلها فهم في المنتدى نفسه ثالثاً تعال هنا ابي اختبرك local steb = { ["Hello"] = true , ["Bye"] = true } local inserting = {} local dd = 0 local count = 0 for i,v in pairs(steb) do dd = dd + 1 table.insert(inserting,i) end for i,v in ipairs(inserting) do count = count + 1 for x = 1,dd do if(count>x)then return end inserting[x+1] = v end end اشرح هالكود
  14. No problem , nobody is perfect , i always forget the 'end' and the brackets tbh
  15. armySkins = { [ 287 ] = true, [ 217 ] = true } armycars = { [ 432 ] = true, [ 520 ] = true, [ 425 ] = true, [ 548 ] = true } function enterVehicle ( thePlayer, seat, jacked ) if ( armycars [ getElementModel ( source ) ] ) and ( not armySkins [ getElementModel ( thePlayer ) ] ) and ( seat == 0 ) then cancelEvent ( ) outputChatBox ( "Only army members can drive this car!", thePlayer ) end end addEventHandler("onVehicleStartEnter", root, enterVehicle ) Event onVehicleEnter could not be canceled , onVehicleStartEnter could be
  16. fadeCamera -- اخفاء أو اظهار الشاشة guiSetVisible -- اخفاء او اظهار النافذة showChat -- اظهار أو اخفاء الشات
×
×
  • Create New...