Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/02/21 in all areas

  1. ?. This function had a bug that was fixed only in r20683 and it looks like it didn't work at all before this version. You can manually update your Linux server to the latest (or desired) version: https://nightly.multitheftauto.com/ Or wait for a new package release on https://linux.multitheftauto.com/
    1 point
  2. marker_aleatoriosS = { {1872.08, -1308.8, 18.147}, {1893.097, -1314.732, 23.151}, {1892.831, -1316.274, 28.152}, {1872.101, -1317.594, 33.147}, {1876.034, -1321.604, 38.147}, {1876.088, -1309.743, 43.147}, {1873.865, -1322.412, 48.069}, --Para não pegar repetido {1872.08, -1308.8, 18.147}, {1893.097, -1314.732, 23.151}, {1892.831, -1316.274, 28.152}, {1872.101, -1317.594, 33.147}, {1876.034, -1321.604, 38.147}, {1876.088, -1309.743, 43.147}, {1873.865, -1322.412, 48.069}, } Object_ferro = {} marker_EntregarS = {} --ID do objeto barra de ferro 2960 function pegarFerroS(player,cmd) local x, y, z = getElementPosition(marker_ferro) local Random_Pos = math.random(#marker_aleatoriosS) if not isPedInVehicle(player) then if isElementWithinMarker(player, marker_ferro) then if getElementData(player, "Ferro") == false then if getElementData(player, "Pedreiro") == true then setPedAnimation(player, "CARRY", "liftup", 1.0, false) setTimer(function() if isElement(Object_ferro[player]) then destroyElement(Object_ferro[player]) end if isElement(marker_EntregarS[player]) then destroyElement(marker_EntregarS) end setElementData(player, "Recompensa", 0) setPedAnimation(player, nil) setElementData(player, "Ferro", true) toggleControl(player, "jump", false) toggleControl(player, "fire", false) toggleControl(player, "aim_weapon", false) setPedAnimation( player, "CARRY", "crry_prtial", 4.1, true, true, true ) marker_EntregarS[player] = createMarker ( marker_aleatoriosS[Random_Pos][1], marker_aleatoriosS[Random_Pos][2], marker_aleatoriosS[Random_Pos][3] -2.2, "cylinder", 2.5, 16, 111, 231, 50) setElementVisibleTo(marker_EntregarS, root, false) setElementVisibleTo(marker_EntregarS, player, true) addEventHandler("onMarkerHit", marker_EntregarS[player], fim_Emprego) Object_ferro[player] = createObject(2960, x, y, z) exports.bone_attach:attachElementToBone(Object_ferro[player], player, 4, 0, 0.4, - 0.6, -90, 0, 0 ) end, 1000,1) end end end end end addCommandHandler("ferro", pegarFerroS) Sua maneira de tabela estava incorreta, estava pegando a index de uma tabela como essa. {1872.08, -1308.8, 18.147,1893.097, -1314.732, 23.151}
    1 point
  3. Did some addaptations to the post? I hope this is filled in correctly now?
    1 point
  4. A maneira na qual você organizou a sua tabela, está errada. Todos os elementos devem estar, também, dentro de chaves.
    1 point
  5. اتوقع انك ملخبط بينهم php = لغة برمجة سيرفر سايد ماراح تحتاجها إلا لو تبغا تتصل بالسيرفر وتجيب شي منه أو تسوي شي فيه وتقدر تستغني عنها javascript = NodeJS لغة برمجة كلينت سايد للموقع وتقدر تستعملها سيرفر سايد بعد بإستعمال css = خاص بالستايل بشكل عام زي الألوان وغيرها html = هنا المخطط حق الموقع
    1 point
  6. ?ادري اني متأخر شوي بس بما انك ناوي تطوره ف قلت اعطيك بعض الملاحظات بالبداية الكلينت ماينوثق فيه ابدًا ممكن أي شخص يقدر يزور شغلة ف مثال فك اللوحة مفروض يكون التحقق حقها سيرفر سايد `client` بالتريقرز مفروض ماترسل الاعب وتستعمله كسورس فيه متغير عام أسمه لأن أي واحد إذا قدر يشغل اي كود بالكلينت يقدر بكل بساطة triggerServerEvent("KickP",getPlayerFromName("Abusolo"),getPlayerFromName("Abusolo")) كذا المخترق بيرسل تريقر هو والسورس هو انت ف المود راح يتحقق الرتبة لك مو له عكس لو استعملت متغير كلينت هذا مايقدر يزوره من الكلينت برضو التحققات مثال الشخص ارسل تريقر قتل لاعب مفروض تحقق من رتبته بالسيرفر سايد لأن ممكن فاك اللوحة وهو سرياله مو موجود المخترقين باللعبة يلي زي كذا نادرين لكن اعرف ناس قدروا يسون اشياء زي كذا ف مفروض للأحتياط تحميه عشان محد يستغله لمعلومات أكثر -- اقترحات بسيطة تخلي تصميم اللوحة relative (نسبي) ف كل ماتكبر شاشة الاعب اللوحة تكبر لأن لو شغلت لوحتك بشاشة كبيرة تحتاج نظارة ? + ليش مايكون تحقق الصلاحيات واحد لأن المود يستعمل سريال ورتبة ليه مايكون رتبة وخلاص إن شاء الله ماكثرت عليك وبالتوفيق
    1 point
  7. This is a [beta] release for the turret resource. The resource is about creating turrets in your world and assigning owners to it (account-names). Followers/profile visitors will be able to download the resource before anybody else. See [BETA] download below. The resource will be available on the community once all ? are found and important features (from you guys?) are implemented. Feature list: Custom rockets (Customizable through Lua scripting) The behaviour of rockets are writing from scratch. Heat-seeking ones even support re-sync position/orientation. Turret creation and management Replace all rockets with custom ones (Feature can be enabled/disabled through the resource settings) Easter egg Can be found within area69. Once triggered something will change in the game. Resource settings in admin panel: The available settings will enable and disable the replacements of default rockets with custom rockets. On foot (recommended ping < 150) Vehicle (recommended ping < 80) If the recommendations are not met, nothing bad will happen as you can't get hit by your own rockets, but it might look a bit weird for the rocket creator ?. The rockets are created serverside, this means that the one that creates them will notice a delay[ping] between firing and seeing the rocket. For the other players the moment of creation should look OK. Open GUI? Login as admin Command: /turret Features: Add/remove turret Multi user support (limited to 1 editor for each turret) Set position/orientation Add/remove turret owners (account-names) Pros custom rockets Re sync heat-seeking rockets Multi syncers More reliable rocket speed. People with low FPS will see the same speed as players with high FPS. Customizable without GTA restrictions. Can be created serverside. Cons custom rockets More CPU will be used to compute the custom behaviour of the projectiles. (Serverside as well as clientside) More data will be transferred between client and server. Not streamable from clientside. (Creates a delay[ping] for the rocket creator) Developers: @Ayush Rathore (database) IIYAMA ? Special thanks to: @majqq @Ayush Rathore @ViRuZGamiing @Shux [BETA] Resource download: turrets.zip Enjoy. Don't forget to leave some feedback! Hint for the easter egg, if you can't find it. ?
    1 point
  8. Oh... i dont know
    0 points
×
×
  • Create New...