Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/05/19 in all areas

  1. Tentei entender qual a ideia exatamente em gerar os IPs que acessarem mas não sei se entendi, a questão também pode nem ser obter os IP permitidos, aqui no próprio tópico já falamos sobre sobrescrever funções, então nada adianta uma proteção avançada mas vacilar com um simples cancelEvent. No entanto, sobre o php, também é uma forma de criar um sistema de proteção, vale também para outros métodos externos. Sobre o "mais seguro impossível" preciso que me prove Voltando ao antigo assunto do tópico, sobre sobrescrever funções por outro arquivo de script, eu fiz aqui uma proteção utilizando a função debug.getinfo, verificando a procedência da função pra determinar se é fake ou não, e, fazendo comparações verificando as linhas que a função está sendo chamada, etc. Não irei postar o código pois iria ajudar mal-intencionados.
    2 points
  2. I checked the bug that revives players at the location where they died instead of the location where they actually got revived, and it is actually a MTA desync issue. I reported it. MASSIVE BUGFIX UPDATE (Special thanks to JN for the long list of small issues): -Ballistic calculation of tanks and other armed vehicles now takes water surface correctly into account -Fixed some minor issues and warnings -Fixed some map bugs -Screenshot mode now correctly hides reload and stamina status, bases and spectate button -Fixed 5-cm PAK 38 increasing a players noise while he drives it -Fixed another glitch that makes no noise while running -Fixed a bug where players could kill godmode staff members -The reload time is now exactly shown in seconds on the small red reload bar in the lower left screen corner -Fixed a bug where medics could revive players while using a mounted machine gun -Fixed a bug where spectating players still occupied a class slot of a team -Fixed grenades that get thrown close to mines getting deleted by spawn protection -Fixed a bug that reset player ammo when entering a fixed machine gun -Fixed a bug that reset player ammo to 0 when reloading a sniper or shotgun -Fixed a bug that lets players unmount a destroyed mortar -Fixed a bug that caused the flare pistol to do 5 damage with each shot -Fixed a bug that made explosive ammo cause damage to friendly vehicles -Fixed a bug that let the infrared vision remain when a player dies while infrared is active -Fixed a bug that let players glitch their ammo when climbing something with enabled first person mode -Fixed a bug that let players glitch their ammo when falling down from something -Fixed a bug that stopped the camera from moving upwards when a player climbs a ladder in first person mode -Fixed a bug that made a player freeze/stuck when reloading a bazooka (or similar weapons) while crouching -Fixed "/brake" command not working -Fied wrong rotation of visible tank machine guns (Hetzer, StuG, M10...) -Fixed a bug that allowed grenades behave like a shotgun -Fixed british engineer having a woman voice -Disabled "/dance", "/heil" and "/handsup" commands because they were useless and caused some bugs -Killmessage colors of submarines and ships should now be correct -Reconfigured azimuth of submarines again: The upper shows the direction of the submarine while the lower shows the rotation of the periscope relative to the submarine -Updated first person mode to work slightly better than before (at least it should) -Spectators can now open the video settings menu -Increased ammo of PWM-1 and RPG-43 from 1 to 2 -Fixed a bug where players could manipulate a vehicle number when entering the vehicle as passenger -Players can no longer toggle First person mode in air to prevent damage from falling -Improved handling of CCKW 335, Opel Blitz, Crusader, Chi-Ha, Sd. Kfz. 222 and Carro Armato P26/40 -Cables of ships are no longer lagging 1-frame behind the actual ship position -Player weapons are now visible to spectators -Cap zones are now visible to spectators -Tickets are now visible to spectators
    1 point
  3. @Eficiencia Sim eu passei o resource que você ira precisar.
    1 point
  4. At places with this kind of loops: for element,ped in pairs(attached_ped) do If you want to optimise this, it will take at least an hour to implement the new table structure. Ask yourself the question: "Do you want to spend your time on that?" Also the code from your previous reply could be merged with:
    1 point
  5. ipairs و pairs pairs : افضل لما تكون عندك قيم في التيبل واجد مثلا حافظ اكثر من 15 الف قيمة ipairs : افضل في حالة انو معك قيم صغيرة مثلا جدول فيه 100 قيمة راح يكون الفرق pairs و ipairs 3.41E-07 ثانية يعني ipairs لانو القيم اللي حافظها قليلة افضل بناحية 0.0000000341 ثانية مثلا : 1000 قيمة الاسرع : ipairs 100 الف قيمة الأسرع : pairs الخلاصة ipairs افضل في حالة مامعك قيم كثيرة و pairs اسرع في حال معك قيم كثيرة
    1 point
  6. @IIYAMA I will test it. Thank you so much anyway!
    1 point
  7. if the javascript injection function is blocked because it is a remote browser, then there is not much we can do about. But you can try to use a second website with iframe which where you load the youtube page in. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
    1 point
  8. server by default. A critical one: Loop over an array table structure. Not an object table structure. But that doesn't mean you can't use both. local boneAttachments_array = {} local boneAttachments_object = {} local newAttachment = { posX, posY, ped -- etc. } boneAttachments_array[#boneAttachments_array + 1] = newAttachment boneAttachments_object[ped] = newAttachment Access the (same) data: for i=1, #boneAttachments_array do local boneAttachment = boneAttachments_array[i] end local boneAttachment = boneAttachments_object[ped]
    1 point
  9. For the vehicle the same steps. But in case of doing it clientside. https://wiki.multitheftauto.com/wiki/IsElementSyncer It is important that you as player only edit the vehicles that are synchronized by yourself. In case of doing it serverside, you need to send the explosion to serverside. And do the steps there. Note: explosions without owner should be ignored or not cancelled.
    1 point
  10. https://wiki.multitheftauto.com/wiki/Garage
    1 point
  11. لو سمحت ممكن تضيفني ديسكورد بخصوص البرمجة ~.|CASPER.D"#7174 .
    1 point
  12. أهلاً وسهلاً بكم في هذا الموضوع لـ شرح التفآصيل تركيب التآج للآعبين لـ سيرفر الوزآرة الشهير سأقوم بتوضيح لكم طريقة تركيب التآج فـى سيرفر الوزآرة وشرح جميع الخطوآت لى نظام التآجات السكريبت متعوب عليه طبعآ بعد الرمضآن تجيدون رابط التحميل في قناتي في هذآ الموضوع سوف اشرح لكم كيف يتم تركيب الـتاج وكيف صاحب الروم يفعل التاجات بالقائمة عندما احد يقوم بشراء ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ الخطوة الأول : ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ عندما يقوم لاعب بأرسال بطاقة السعر : 50 سوا لى شراء التآج يقوم صاحب السيرفر بى فتح هذه القأئمة : ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ وسوف يسمح للآعبين او المسؤولين السيرفر بفتح هذا اللوحة وهونا يتم تركيب التاج لاعب الذي قام بشرائه ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ طبعا هونا يتم شرح اللوحة اولا ؟ لماذا صاحب الروم يقوم بإضافة الحساب داخل اللوحة التاجات وكيف يتم ذالك وماهو المستفيد من ذالك ؟؟ الأجوابة : يقوم بكتابة اسم الحساب الشاري ويظغط على الزر اضافة هذا الحساب مباشرةً سيتم أرسال الحساب الى اللوحة التاجات فالجدول .. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ الشروحات التركيب التاج بالتفاصيل كاملة طبعا السكريبت معقد شيء ولاكن سهل وفكرته مميزه وممتازه Name : و Tag : xX[ Console ]xX , MR.S3D : التاج مثلآ هذا التاج يتم تقسيمه على نصفين xX[ Console ]xX : داخل الإيدت ( Tag : ) , MR.S3D : داخل الإيدت ( Name : ) أظهار التآج بشات -- Q.5 لونه احمر هذا اللون الذي يتم تغييره داخل اللوحة التاجات وبعد ذالك الظغط على زر حفظ المعلومات داخل اللوحة وأرسال المعلومات الى الإستضافة تم التصميم والبرمجة والفكرة من قبل @MR.S3D وتم تقليده كامل مكملاً من قبلي ونتمنا الموضوع غير مخآلفة للقوانين انه شرح بسيط وانتظرو الرآبط التحميل بقناتي وألف شكرا للجميع فـ آمان الله آخوكم وحبيبكم .القأئد المحلق ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1 point
  13. bool isPedOnGround ( ped thePed ) float getGroundPosition ( float x, float y, float z ) getGroundPosition is client-side only and requires the world to be streamed in at that position at the time of calling the function, but if the player is above it it should be loaded.
    1 point
  14. @majqq Getting the ped height from the centre: https://wiki.multitheftauto.com/wiki/GetElementBoundingBox An alternative: getElementPosition - https://wiki.multitheftauto.com/wiki/GetPedBonePosition
    1 point
  15. قفل اي مود تاجات أو مود الفري روم
    1 point
  16. It's official, MTASA has been bought and we are becoming SAMP. Future MTASA builds will be closed source and half the features removed. Have a nice day!
    1 point
  17. That should be fine, as long as the sound stays the child and not the parent.
    1 point
  18. cin و get.cin ايش الفرق بين دالة - اولاً خلينا نسوي تجربة ونشرح خطوة بخطوة P ولم يخرج لي X ولكن خرج لي البرنامج قيمة واحد الى هيا P و X كما هما واضح في السكرين ، دخلت قيمتين تتخطى المسافات وتترجم القيم cin تترجم مسافات على اساس انهم قيم ولكن دالة get.cin دالة cin تختلف على دالة get.cin b = " " ; a = "X" ; كاني كتبت b قرأت على اساس انها قيمة مخزونة بال المتغير X P لان المسافة الى سويتها بين P ومسافة ولم تقرأ X قرأت X P ونفس شيء الي صار ب القيم الى ادخلتهم بدون مسافة بيناتهم نشوف النتيجة XP لنفترض مثلاً دخلت cin بعطيكم مثال على دالة ...اتمنى ان اكون وصلت لكم فكرة بطريقة مبسطة واي شيء ما فهمته اكتب لي وانا اشرح لك من جديد واي شيء تبيني اشرحه لك بخصوص السي بلاس بلاس اكتب وما بقصر معك ان شاء الله دمتم سالمين
    1 point
  19. Oil-system -< Let you know an oil job on your own -< Link: https://up.top4top.net/downloadf-946hhn6v1-zip.html
    1 point
  20. Postou no local indevido. Na wiki tinha um exemplo basicamente pronto era só adaptar do seu gosto. Faça assim: local timerGetAdmins = 10 addEventHandler ("onResourceStart", resourceRoot, function () timerAdmins = setTimer (function () admins = "" for _, v in ipairs (getElementsByType ("player")) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then if isObjectInACLGroup ("user."..getAccountName (getPlayerAccount(v)), aclGetGroup ("Admin")) then if (admins == "") then admins = getPlayerName(v) else admins = admins .. ", " .. getPlayerName(v) end end end end outputChatBox ("Admins Online: #FFFFFF"..tostring(admins), root, 0, 233, 0, true) end, 60000 * timerGetAdmins, 0) end) @adrian enigma
    0 points
×
×
  • Create New...