Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. بالأول جربت الكود الي أنا حطيته؟ و بالنسبة لـ زي التوب حقي هذا مود كامل طويل عريض و نافذه و أنت ما عندك ولا شي يعني سوري بس مراح نسوي لك مود جاهز حنا هنا نساعدك لو عندك مشكلة بكود
  2. وين حبيبي lua ذا كود برمجي ينحط بملف مفكرة بصيغة
  3. و كأنك يابو زيد ما غزيت و أنا آقول لك مثال 2 في الويكي https://wiki.multitheftauto.com/wiki/OnC ... WeaponFire function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 25) then -- If the player shoots with a shotgun createExplosion(hitX, hitY, hitZ, 12, true, false, true) -- Creates a tiny explosion where the bullet hit. end end -- Add this as a handler so that the function will be triggered every time a player fires. addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) المثال ذا الي يسويه هو إذا أطلقت بشوزن يجي أنفجار بمكان أصتدام الطلقة
  4. ????????? ههههههههههههههههههههههههههههههههههههههههههه أيش هذا؟ onClientPlayerWeaponFireFunc(31, 1000, 9999, hitX, hitY, hitZ, player ) ههههههههههههههههههههههههههههه يا حبيبي ذا أسم الفنكشن الي في المثال الي بالويكي هههههههههههههههههههههه
  5. So i send you ///EDIT Can I do anything to fix that? show whole code
  6. ~_~ this is realy mess ._. i still don't know what is the fucking avatar
  7. it's must be the same in dxscoreboard_client.lua and same in column name and same element data if the column is empty then you haven't any data called "avatar_file" also i think you should use event onResourceStart because when you join to the server it's almost you wouldn't have any data
  8. make sure you have put it "Avatar" in dxscoreboard_client.lua
  9. للأسف الطلب غير واضح جداً خخ أممم تقصد كذا مثلاً؟ for i, player in ipairs(getElementsByType("player")) do outputChatBox(getPlayerName(player).." has money $"..getPlayerMoney(player),root,255,255,0) end
  10. how it will work with mess code? -_-" I'm not your god -_-" exports.scoreboard:addScoreboardColumn('avatar', root, 64, 64) function showavatar() local avek_file = getElementData(source, "avatar_file") if avek_file then setElementData(source,"avatar",":Panel-F7/avatars/"..avek_file..".png") else setElementData(source,"avatar","N/A") end end addEventHandler("onPlayerJoin",root,showavatar)
  11. -_-" http://www.mediafire.com/?eoeb5hy3flth7mi
  12. * weapon: an int representing weapon used for making a shot. * ammo: an int ammount of ammo left for this weapon type. * ammoInClip: an int ammount of ammo left for this weapon type in clip. * hitX, hitY, hitZ: float world coordinates representing a hit point. * hitElement: an element which was hit by a shot.
  13. setCameraTarget() setCameraTarget(localPlayer) and remove this addEventHandler("onClientRender", root, backToView) addEventHandler("onClientRender", root, createViewOpen) and this not needed local localPlayer = getLocalPlayer ()
  14. https://wiki.multitheftauto.com/wiki/OnC ... WeaponFire المثال رقم 2
  15. JR10 أولاً الي كاتب الرد مو أنا الي كاتبه هو ثانياً على سالفه العلامة ذي / مو مطلوبه لو كنت تكتب في أف8 أما إذا كنت تكتب في الشات فبتكون مطلوبه يفترض أن ذا الشي معروف من الجميع -,-" الي ما يعرف ذا منوب
  16. المطلوب عناصر و ليس أسم والعنصر له أكثر من طريقة تجيبه source = المهجوم عليه attacker = المهاجم Weapon = السلاح المهجوم به bodypart = مكان الأصابة و أماكن الأصابة هي 3: Torso (الصدر و البطن و الظهر) 4: Ass (الطيز هههه ض1) 5: Left Arm (اليد اليسر) 6: Right Arm (اليد اليمنى) 7: Left Leg (الرجل اليسرى) 8: Right leg (الرجل اليمنى) 9: Head (الرأس)
  17. you need to get last scoreboard then add it on line 705 http://mtasa-resources.googlecode.com/f ... s-r841.zip
  18. أضن ذا المود ممكن يساعدك viewtopic.php?f=108&t=36791
  19. حبيبي أنا ماراح أحط لك كود جاهز كوبي بست أنا بشرح لك و أنت عليك تتعلم onPlayerDamage أولاً تستخدم الحدث ولا تنسى البارامترات attacker و المهم هو بارمتر الـ لقتل اللاعب killPed ثانياً تستخدم source و اللاعب القاتل بيكون المهجوم عليه attacker بالأول تحط اللاعب الي تبي تقتله و في ذي الحاله هو بيكون killPed(attacker,source) لو أنك بس تفتح هالرابطين تفهم كل شي https://wiki.multitheftauto.com/wiki/OnPlayerDamage https://wiki.multitheftauto.com/wiki/KillPed ولا تفكر إن الرابطين لـ أكواد جاهزه أساساً ذي الأكواد أمثله على الوظيفة الرابطين ذول شرح للوظائف و تركيبتها و طريقة أستخدامها
  20. حبيبي رح نم وراك مدرسة
  21. onPlayerDamage killPed https://wiki.multitheftauto.com/wiki/OnPlayerDamage https://wiki.multitheftauto.com/wiki/KillPed
  22. الكود فيه خطأ الكود ينقل كل اللاعبين -_-" التصحيح local marker = createMarker(0, 0, 0, "checkpoint", 2, 255, 255, 0, 0) createBlipAttachedTo(marker, 15) function changeLocation(person) setElementPosition(person, 132, -67, 1) end addEventHandler("onMarkerHit", marker, changeLocation)
  23. local army = createObject(976,97,1922,12.60000038147,0,270,85.995483398438) local armycol = createColCircle(93.90771484375,1920.6955566406,10) function openarmy(thePlayer) if getElementModel(thePlayer) == 287 then moveObject(army,2500,97,1922,8.1000003814697) end end addEventHandler("onColShapeHit",armycol,openarmy) function closearmy(thePlayer) if getElementModel(thePlayer) == 287 then moveObject(army,2500,97,1922,12.60000038147) end end addEventHandler("onColShapeLeave",armycol,closearmy)
  24. Note: This is for client side bindKey("F1","down","open1") -- by the cmd name or bindKey("F1","down",opendoor) -- by the function name
×
×
  • Create New...