Leaderboard
Popular Content
Showing content with the highest reputation on 19/07/18 in all areas
-
2 points
-
2 points
-
I'm glad i saw this topic because i figured out a bypass to get the links to work. It was not working before because javascript redirects you to the download link after a few seconds to stop bots from using the site So here it is and i can finally fix a music player script i got I don't know how long this will last but there will be a possibility that this will break and this code needs some optimizations. requestBrowserDomains({"www.convertmp3.io"}) local browser = createBrowser( 0, 0, false ) local currentSound function start(_,link) fetch(link) end addCommandHandler("play",start) function fetch(url) if (url) then fetchRemote("http://www.convertmp3.io/fetch/?format=JSON&video="..url, callback) end end function callback(data, error) if (error ~= 0) then return outputChatBox(error) end if (data == "ERROR") then return outputChatBox("data error") end local data = fromJSON("["..data.."]") if (data) then outputChatBox("Title: "..data.title) outputChatBox("Length: "..data.length) outputChatBox("Link: "..data.link) loadBrowserURL( browser, data.link ) end end addEventHandler( "onClientBrowserNavigate", browser, function( link ) if not link:find("www.convertmp3.io") then currentSound = playSound( link ) end end ) This creates a dummy browser and waits for the redirect link to play the sound.2 points
-
In my opinion, the worst part of the forum design is the background. And they could change, perhaps making it clearer. Like this: As for the mod, I expect the custom IFP animation support to be implemented with good synchronization with the server, otherwise, it would be better not have. With this, it would be interesting also to extend the system of peds, adding new functions and improving others, always paying attention to the synchronization with the server. MTA is one of the most complete multiplayer mods, if not the most. It is even difficult to find things that are impossible to do. But for me, there are two paths yet to be explored, the system peds, as I have already said, and the properties of objects. If we could manipulate the goal properties more, I'm sure it would generate very creative ideas for resources and servers.2 points
-
Hi there! Time sure flies fast, doesn't it? It has been a while since the last post from us so we would like to give you an update on what has been going on recently with MTA:SA. We have got two highlights for you this time. The community Do you remember our Community website? It has served us well over the years but has also caught some rust in the process. Therefore, we would like to re-visit it and improve your experience with discovering and publishing resources. Our plan is to build a new community website from the ground up using modern technologies, and we would like to hear from you what you would like to see on the new platform. Please respond to this thread with your ideas and suggestions. Technically inclined users can take a look at the first pass of our specification document. Development progress As for the mod itself, we have received many pull requests (patch contributions) on our GitHub from open source contributors lately. One of such contributions is a brand new feature: custom IFP animations support, coming from one of our community members, Saml1er. He managed to get this to work nicely in MTA:SA, while ensuring that our coding standards are met so we could include it without too much hassle. Saml1er even made a video which showcases what this feature is all about. You can find it below: We intend this to be a part of our upcoming 1.5.6 release which we hope will come soon, but you can try it out now by using a nightly build: https://nightly.multitheftauto.com/ Tips for using this can be found on our wiki: https://wiki.multitheftauto.com/wiki/EngineLoadIFP That's all for now. Take care and enjoy the summer! — MTA Team1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
موفق ولكن اعتقد ان الفكرة مقلدة من زمان اعتقد لازم يحذف الموضوع @!#NssoR_) صحيح اننا متاخرون عن الانجليز ولكني لن اصمت انضم لفريقنا العربي اللي يهدف الى زيادة خبرة المستخدمين عن البرمجه اي احد له خبره برمجيه في اي لغة برمجية يتفضل يزورنا على الجروب التالي دسكورد انا بداته بنفسي اي شخص حاب ينضم حياه https://discord.gg/AEqxF2V صاحب الفكرة @Master_MTA1 point
-
understood, thanks mate. Oh, sorry for the addEvent I wasn't paying attention to it.1 point
-
Hey @orel56000, as I told you back in March, Regex is the answer; check out this example that achieves precisely what you're looking for: https://regex101.com/r/TDGUr7/1 Use notepad++ to do the replacements, just make sure you have the regex option ticked.1 point
-
1 point
-
وش حاصل للكل الأيام دي مفكرين ان البرمجه باللفل و متفاخرين و الي كاتب 10% و الي كاتب 50% و الي كاتب 70% لغات البرمجه مثل البحر اتحدي احد اصلا يكون مكمل 10% منها + LUA مو ام تي اي فقط + الي يقول 80 - 60 في الميه عشان يعمل لفل عوافي اللفل سيستم مود سهل و اكبر مثال اهو اتفضل : local levelTable = { xp = {}, level = {} } addEventHandler("onResourceStart", resourceRoot, function() for _,player in ipairs(getElementsByType("player")) do levelTable[player]["level"] = 1 levelTable[player]["xp"] = 0 end end ) addEventHandler("onPlayerLogin", root, function(_,account) levelTable[source]["level"] = 1 levelTable[source]["xp"] = 0 end ) addEventHandler("onPlayerWasted", root, function(_,killer) if killer and getElementType(killer) == "player" and killer ~= source then levelTable[killer]["xp"] = (levelTable[killer]["xp"] or 0) + 10 checkNextLevel(killer) end end ) function checkNextLevel(player) local currentLevel = levelTable[player]["level"] or 1 local neededXP = currentLevel*100 local currentXP = levelTable[player]["xp"] or 0 if currentXP >= neededXP then levelTable[player]["level"] = currentLevel + 1 levelTable[player]["xp"] = currentXP - neededXP outputChatBox("you've promoted to level "..currentLevel+1, player, 255, 255, 0, true) end end ذا مثال بسيط عن مود اللفل1 point
-
على حسب معرفتي تقدر تتحكم ب الوظائف و الاحداث قبل تجي او بعد تقدر تشيك على الصفحة بالويكي hookType: The type of hook to add. This can be: preEvent -- قبل الحدث postEvent -- بعد الحدث preFunction -- قبل الفنكشن postFunction -- بعد الفنكشن ولو تبي تكنسل الوظيفة او الحدث تسوي return 'skip' ولو مافهمت شف امثلة الويكي وحاول تطبق وان شاء الله تفهم , قلت لك الي انا اعرفه , بالتوفيق1 point
-
الفنكشن يستخدم عشان تكتشف الأخطاء وراح تعرف منه كل فنكشن واحداث شغاله وكذلك. مع كل أرقمنت يستخدمه فنكشن مفيد لأشياء كثيره يعني يكشف لك كل اضافه تقدر تضيفها وأخطائك.1 point
-
1 point
-
1 point
-
1 point
-
No, we won't allow anyone to use MTA to commit crimes, using MTA to facilitate spreading viruses around hits a zero-tolerance policy. There'll be no unban anywhere soon, he may try again in a considerable amount of time (months) EDIT: ban set to expire in 3 months1 point
-
Updates, updates & more updates. And of-course don't forget to join our discord at: https://discord.gg/kwJ73GY Or check our forums here! Anyway what's new? Check the spoiler below! Stay tuned for more updates!1 point
-
Post your whole script. P.S: Is a server side script.1 point
-
What I did was delete both the command handlers wp and give, there may of been a better way to do it but it works just fine lol. or if i am correct you can add the "wp" or "give" command to the acl under defeult false and under admin true1 point
-
0 points
-
انت كاتب 50 % xDD قصدوا عليا وعليك لعلمك يا استاذ متقولش محد يقدر يوصل 10 %% انا بفتح كل يوم 2 ساعة بلعب 1 ساعة وببرمج ساعة لو 24 ساعة والله اكون محترف , بس بردو يلزم حد يساعدني بس جربني في لغة html < css < java بتشوف بفهم او لا انا مبرمج منتديات ومواقع و مصمم فوتشوب وبتعلم برمجة ام تي اي عشان استفيد واصنع مودات , حلوة تفيد العرب ايوة ايوة ال بيقول بشطح مودات عالية وفيها ايه سالت وعلفكرة ال عندوا 80 % خبرة مش احسن مني 95 % ذكاء من عند ربنا !!0 points
-
انت تشوف الشي سهل لأنك متمرس وعندك الخبره الكافيه، غيرك يشوفها صعبه لأنه مبتدئ، فلا تجي تعامل الناس على خبرتك عاملها على مستواها، وطبعا هاذا اللاكواد حق المود مشي حالك يعني، أنا أتكلم لو يبي مود لفل على مستوى يبيله خبره كافيه End.. #0 points
