Leaderboard
Popular Content
Showing content with the highest reputation on 27/12/21 in Posts
-
تنبيه بسيط السورس كذا ماراح يكون معرف في الانيموس فنكشن، ممكن انت جربته وطلع الشات وحسبته ضبط ،والارقمنت له قيمة إفتراضية يلي هي الروت، عشان كذا طلع لك nil لكن لا، قيمة السورس ? تقدر تجرب تطبع القيمة حقت السورس عشان تتأكد :المفروض يكون كذا function hi() bindKey(source, "n", "down", function (player) outputChatBox ("testt", player, 255, 255, 255, true) end) end addEventHandler ("onPlayerLogin", root, hi) تقريبا @SCiأكتشف المشكلة بالكود يلي عرضه قبل شوي هذا الحدث إذا اشتغل مود، الايفنت نفسه ماراح يعطيك أي معلومة عن الاعب لأنه خاص بالمودات فقط getElementsByType لازم تجيب كل الاعبين وتسوي لهم لوب هذا الفنكشن يجيبهم لك :مثال بسيط -- server function keymes() local players = getElementsByType("player") -- راح يعطيك جدول يتكون من الاعبين المتصلين بالخادم for index,player in ipairs (players) do -- نسوي لوب (تكرار) على جدول الاعبين bindKey(player, "e", "down", function (player) outputChatBox ("test", player, 255, 255, 255, true) end) end end addEventHandler ("onResourceStart", resourceRoot, keymes) لاحظ إني عدلت بعد في أخر سطر استبدلت root -> resourceRoot لجميع الكائنات وبما إن الحدث هذا يشتغل للمودات فقط راح يشتغل لأي مود مو لسكربتك فقط root ليش؟ لكائنات المود نفسه وبما إن الحدث زي ماقلنا يشتغل للمودات راح يشتغل الايفنت لنفس المود فقط ،resourceRoot لكن ممكن تفهم أكثر مع رسمة شجرة الكائنات لا تنسى تضيف الزر بعد في حدث الدخول onPlayerJoin أو onPlayerLogin لأن الايفنت زي ماذكرت راح يشتغل في حالة السكربت اشتغل فقط لو فيه لاعب دخل بعدها ما راح يشتغل له يمديك حتى تخلي فنكشن الزر بحدث منفصل عشان ماتكرر الكود كل شوي مثال function myFunction(player) -- تطلع شات هنا أو تسوي يلي تبغاه end -- بعدها في أي ايفنت تقدر تتكتب اسم الفنكشن فقط، بدون ماتحتاج تعيد كتابة الفنكشن من جديد bindPlayer(player,"e","down",myFunction)2 points
-
function hello( ) bindKey ( source, "m", "down", function( ) outputChatBox ( "تجربة", source, 255, 0, 255, true ) end) end addEventHandler( "onPlayerLogin", root, hello )2 points
-
Hello ivan8065, I would like to amend the statement by IIYAMA which I think does lead you in the right direction. The way that you have written your clientside code the "synchronization" is only happening for the player that requested the action, not all the players. This way it causes a desync where other players cannot see changing of the components between each other. Consider changing... ... addEventHandler("scp", localPlayer, scp) ... to ... ... addEventHandler("scp", root, scp) ... I am not sure if IIYAMA is aware but the source variable in ivan8065's code event handlers is already containing the player, so there is no need to put a "thePlayer" parameter to the event handler. You should consider doing... function scp() local theVeh = getPedOccupiedVehicle(source) Also please consider naming your events strongly and picking different function names than the event names. Keep up the good work with those interesting ideas!2 points
-
Hi people! Same drill as usual. The year is nearing to an end, so here is a freshly baked summary post for you. Read on and learn about all the interesting things that happened in the MTA community in 2021. 2021 in Recap Early this year, we have restructured our Moderation team a bit by adding the Specializations divisions (such as: Management, Tech and Infrastructure, Social Media). The aim of this was to refine extra talents of our Moderators and put them to a better use. As one of the results of that, the Management division has introduced a new way for more-involved-but-not-quite-there-yet MTA supporters to contribute - a Helper role. Curious about what it is? Check out the post by Tut. At the end of July, our developer and designer, Patrik, has revived the live streaming idea a bit and played some MTA:SA on our Twitch channel. He focused on visiting various servers ran by the community. In case you have missed it, you can check the stream capture here: https://www.youtube.com/watch?v=n2KcspT0F0A There were a few recurring requests that you guys have kept asking us about over the years. One of them was to release the mobile version of MTA:SA - apologies, but unfortunately that is still not going to happen ?. But another request was to make it possible to buy some official MTA merchandise. And guess what - we have listened to you on that one! Patrik has prepared some neat designs and we have put them for sale - although please keep in mind, we do not make any profits of these sales. Want to see the goods? Check them out here: https://multitheftauto.myspreadshop.net/all Not that long ago, in early October, we have released Multi Theft Auto: San Andreas 1.5.9. This release was focused on wrapping up the contributions made to the mod so far and put them in a single package for your convenience. Same month, Rockstar Games has announced an upcoming release of "Grand Theft Auto: The Trilogy - The Definitive Edition", a remake/remaster of the original 3D era GTA trilogy (GTA3, GTA:VC and GTA:SA). Not only was it a sudden announcement, but also the release was coming really soon. The remastered games were released, but received mixed reactions from gamers and reviewers. Technical-wise, they are a feat, as games were remade in a different and well-established game engine and are available for multiple platforms. Sadly, the same could not be said about the actual quality of these games as it was inconsistent. Hopefully, the improvements planned by Rockstar will bring them up to the quality they deserve. It is important to note that MTA mods (GTA3:MTA, MTA:VC and MTA:SA) do not work with the remastered games from the GTA: The Trilogy. We currently have no plans of making them compatible, as it would require an insane amount of effort, considering the technical differences between the original games and their remastered equivalents. Lately, our Development and Infrastructure divisions have been working on improving the reliability and performance of our web services. You may have noticed that for instance, our forums have been running faster - it is all a result of CiBeR's hard work. One of our distinguished community members, Haxardous, has prepared a list of interesting MTA:SA servers. If you are looking for a new MTA:SA server to play on, then you might want to check out one of his recommendations. You can find them here. ModDB has recently featured all of the mods that won the "Mod of the Year" award in the last 20 years. We had won this award ten years ago, so naturally we are on the list too! A bunch of interesting MTA:SA-related YouTube videos from this year [DM] NikotiN ft. Lost ft. Driver ft. SKooD - Enormous Cataclysm - video by CHRS / map by Nikotin, Lost, Driver and SKooD MTA-SA: Welcome to San Andreas Trailer (WTSA) #1 by ヌルぽ / Nurupo #MTA:SA: ~ TACTICS / STEALTH by notzz & the_bestteam Grafuroam drift handling update by Unity SHORT ONE | NON-STOP MTA DAYZ by BuczU YouTube in Car - Interactive Dashboard (MTA:SA) by Chemical Creations MTASA Dangerous Experiments by Toliak Purple Current player counts and version fragmentation statistics Type Amount of players Date / Time Recent peak number of concurrent unique players 37 487 players 2021.12.19 (at 19.13 GMT) Highest recorded number of concurrent unique players 52 098 players 2020.04.02 (at 18.00 GMT) Recent number of daily unique players 148 783 players 2021.12.19 (Sunday) Highest recorded number of daily unique players 185 818 players 2018.02.03 (Saturday) Recent number of monthly unique players 626 613 players November, 2021 Highest recorded number of monthly unique players 805 903 players January, 2018 MTA:SA version or series Percentage of players using that version or series as of 25th of December, 2021 1.6.0 (alpha; custom) 0.2% 1.5.9 97.6% 1.5.8 1.9% 1.5.7 (and older) 0.2% 1.4.x + 1.3.x 0.1% Still looking good. On a side note, our community on Discord keeps growing. We went from 20k users last year to nearly 40k this year. Our presence on social media (Twitter, YouTube, Twitch, Facebook and Reddit) is improving too - thanks to work done by Patrik and the Social Media division. --- Enjoy the holidays and hope to see you back in the next year! -- MTA Team1 point
-
التركيبة : guiSetInputMode ( string mode ) المود الي تبغاه : "allow_binds": binds are enabled, hence using a key such as t in an editbox will still activate the chatbox (default) "no_binds": binds are disabled, hence using a key such as t in an editbox will not activate the chatbox "no_binds_when_editing": binds are always enabled except when an editable editbox or memo has input فالحالة هذي حط no_binds_when_editing guiSetInputMode("no_binds_when_editing")1 point
-
You're welcome! I am glad to have helped you. We are a community that care about each other.1 point
-
1 point
-
Hello @Carl Rayanitch DZ As you're asking a question related to MTA client/settings I've gone ahead and moved this into a better section for you!1 point
-
1 point
-
? مثال حلو، يعتمد بعد على الفكرة يلي بتسويها على سبيل المثال فكرتك يلي سويتها راح تشتغل بالسيرفر والكلاينت ومايهم التأخير، لكن وش يفرق؟ لو سويتها بالسيرفر جميع الاعبين راح يشوفونه، وإذا كلاينت راح يشوفه هو نفسه فقط (لأن الكلاينت يعتبر جهاز الاعب)1 point
-
،أي بالضبط، لكن ما أنصحك تستعمله بالسيرفر إذا ماكنت تحتاجه .لأن راح تشوف تأخير وممكن يكون كبير إذا كان الاعب عنده مشاكل بلاتصال على سبيل المثال تبي تخلي السيارة تقفز، سويها كلاينت، لأن الاعب يتوقع إن السيارة تقفز على طول1 point
-
Great recap, keep up the good work guys! Happy New Year to you all.1 point
-
1 point
-
1 point
-
Wish you all have a lovely holiday ! Happy new year guys1 point
-
1 point
-
Damn,been playing MTA for like 11 years now and i never expected to be featured on one of this post,thanks a lot for that and i wanna also say thanks to my fellow teammates for making this thing possible. I wish you guys a happy new year.1 point
-
O tutorial de hoje é sobre tabelas! Tabelas irão facilitar a sua vida na hora de programar. Além de economizar dezenas de linhas de código, ele ficará muito mais fácil de ser lido por outras pessoas, e também por você mesmo, depois de um certo tempo sem ter contato com o código. Não só essas coisas, como irá te abrir um mar de possibilidades. Clique no texto abaixo para ir diretamente ao site onde o tutorial está. Optei por escrevê-lo no Gist (do GitHub), como uma forma de organizar um pouco melhor. Ir para o tutorial ?1 point
