Leaderboard
Popular Content
Showing content with the highest reputation on 11/05/18 in all areas
-
Hi everyone. I want to share some of my resources. For almost 8 years I have been working on various projects in the MTA and over the years there has been an archive of resources and scripts. Maybe for someone it will be useful and interesting. Consists: •Terrain editor(in two editions). In-game terrain editing system. Video •Dynamic grass. Video •Light baking and rendering system(with DFF or distributed) Video •Models loader(DFF/TXD/COL) that can download and stream-in only those that are within a certain radius from the player •Two version of the TEDERIs Construction Tools(with FlowGraph or Wire) Video •Particle system(natively DFF or through dxDraw* fns) Video •Blank for RP gamemode and more •And more All this can be found on GitHub Notice! Many resources have been created for a long time and likely they require some adaptation for the new version of the MTA.2 points
-
Hello! I've been working with MTA team on implementing the ability to play custom IFP animations in MTA since a couple of months. Today, I want to notify you all that it's done after a lot work, this means you can create your own IFP animations in 3ds Max using Kam's script, play them in MTA:SA (not released yet) using Lua scripting functions. I've created my pull request on github which you can find here. Everything's pretty much done, but there's one problem, the pull request cannot be merged into the master branch because there's a lot of code to go through, this will make fixing bugs very difficult, so we'll need to test everything in every way possible before releasing. MTA used to have a lot of developers back in the days who designed the core of the software that we have today, I appreciate their work, and I'm forever grateful for their contribution. There are still a few developers from the MTA team and other old contributors who spends hours upon hours on making MTA better, and get literally nothing out of MTA for their work, but they still do it . My point is, MTA has potential, and together, we can make it better, not having enough time to test everything out is on the main reason why we still don't have this feature implemented into MTA's main branch, so I'm here to ask the community for help in testing this feature. There are so many gamemodes that can take advantage of this feature. We still have plenty of RP servers here, and they still keep increasing till this day. RP servers have almost everything they need, server developers keep trying their best to push the limits in order to have more realism, I honestly believe this will fix that problem, or at least improve it. Here are two video: What is IFP? IFP is the animation file format for GTA III, SA, and VC. Adding support for this file format will allow us to play any custom animation which are made for GTA:SA and GTA:VC. You can load as many IFP files you wish to, you can have hundreds of thousands of animations. Note: GTA III animations are not supported for now. How you can help: As much as everyone wants to have custom animations in MTA, I would love to see them as well. You can help by testing different IFP files, and report bugs on this thread. Download the new MTA:SA from here: https://ci.appveyor.com/api/buildjobs/67st54i25p8ge8is/artifacts/InstallFiles.zip Right-click on InstallFiles.zip, extract the files to some location on your computer, I usually extract them to my desktop. Download the resources from here: https://drive.google.com/file/d/1TIK0-M3CNFR_1Yjn6pjImrS7184SS8jS/view?usp=sharing Create a folder with name "resources" in InstallFiles\server\mods\deathmatch, and extract resources.zip to InstallFiles\server\mods\deathmatch\resources. Start your MTA:SA server from location: InstallFiles\server\MTA Server.exe, and then start the ifp test resource from console "start ifptest" Now launch MTA from InstallFiles\Multi Theft Auto.exe, join your server. Use keys 1, 2, 3, 4, or 5 to play the custom parkour animation from parkour.ifp in ifptest. How to report bugs? When you are playing custom animations, if something's not working the way it should be, or if MTA crashes then please fill this form and reply to this thread: IFP download link: (put the download link here for IFP, so I can download and test it myself) Description: (Explain what the bug is) Steps To Reproduce: (write the steps on how I can reproduce the bug myself) Example: IFP download link: https://www.website.com/gta4.ifp Description: When I play this animation named "CartWheel," I can't move for a while, and MTA crashes. Steps To Reproduce: 1. Load "gta4.ifp". 2. play animation named "CartWheel" using setPedAnimation. 3. MTA crashes. If you want to submit the bug report by PM on forum then feel free to do so. I've added the resource "ifptest" to show you how to play custom animations. You can check how I did it by checking InstallFiles\server\mods\deathmatch\resources\ifptest\client.lua. About the new Lua functions, quoting myself: "There are three new Lua functions added: // loads IFP with a custom block name ifp engineLoadIFP ( string ifp_file_path, string custom_block_name ) // this will replace an internal GTA animation with custom one, it's a light-weight operation, // don't worry too much about performance. Different peds can have different running, walking, // crouching, shooting, etc. animations all running simultaneously because we are not actually // replacing animation hierarchies, we are merely storing everything in std::map which is in // CClientPed. When an animation triggers, we get the ped by clump, and play the animation // we wish to play. setPedAnimation works a little different than this, but the idea is same. bool engineReplaceAnimation ( ped thePed, string block_name, string anim_name, string custom_block_name, string custom_anim_name ) // This will restore animation replaced using engineReplaceAnimation, if only 1 parameter // is provided which is ped, then it will restore all animations, if block name is also provided, // then it will restore animations of that block only, if animation name is provided as well, // it will restore that specific animation only. bool engineRestoreAnimation ( ped thePed [, string block_name, string anim_name ] ) " To add your own ifp file, just add this to meta.xml: <file src="YourIFPFileNameHere.ifp" /> then in client-side Lua script, you can do: local customIfp = engineLoadIFP ("YourIfpNameHere.ifp", "YourCustomBlockNameHere") setPedAnimation ( localPlayer, "YourCustomBlockNameHere", "YourCustomAnimationNameHere" ) If you have any questions, write them here.1 point
-
السلام عليكم رجعتلكم بعد طول غياب بسكربت بسيط لسيرفرات حرب العصابات والسكربت الي هو Briefcase ( الحقيبة ) بعض الصور للسكربت بعض الخصائص اضافة امر لمعرفة وقت نزول الحقيبة الحقيبة لا تزال الا عندما يتم ايصالها بأمكانك تعديل كل شي ولاكن عن طريق ملف 'Settings.lua' مثل داتا الاكس بي عدد الفلوس اماكن نزول الحقيبة امر معرفة الوقت إلخ صورة توضيحية روابط التحميل bone_attach guimessages briefcase --------------------------- لازم تشغل guimessages bone_attach قبل م تشغل المود _____________________________ الاهدائات @Ahmed_Negm @Master_MTA @iiKhaled @!#NssoR_) @#ibrahim @*RayaN-Alharbi. @MR.StoRm @iMr.WiFi..! @MR.SAMSUNG @#StrOnG_,) @Abu-Solo @#Soking @The Killer @#[K]aTakuRI-,? @Sha67 @Ahmed Ly @TAPL } واتمني يكون اعجبكم السكربت ومع السلامة1 point
-
السلام عليكم ورحمة الله وبركاته سويت مود بنك و ابي اعرضه عليكم آرائكم المميزات - تقدر تسوي حساب خاص ( او اكثر ) في البنك ليس له علاقة بحسابك الخاص باللعبة - يوجد عائد بعد مرور ( فترة انت تحددها .. دائم ) لكل حساب حسب المال الموجود فيه - امكانية انشاء اكثر من حساب و تسجيل الدخول و تسجيل الخروج - ايداع و سحب المال و ارسال مال الى حساب معين من القائمة صور https://d.top4top.net/p_829cgv5b1.png https://e.top4top.net/p_829tzmsv2.png https://f.top4top.net/p_829datx33.png https://a.top4top.net/p_829a33dx4.png https://b.top4top.net/p_82916ylq5.png https://c.top4top.net/p_82919fzb6.png https://d.top4top.net/p_829bqwow7.png https://e.top4top.net/p_829s0uta8.png https://f.top4top.net/p_829dh6p19.png https://a.top4top.net/p_829186tx10.png1 point
-
Help solve the problem. Reinstalled GTA and MTA several times, the error all just jumps out. At launch, the MTA jumps out this --------------------------- MTA: San Andreas [CL40] (CTRL+C to copy) --------------------------- Ошибка версий файлов. Переустановите MTA:SA для решения проблемы. [mods\deathmatch\pcre3.dll 0.0.0.0/1.5.5.11785] Вы хотите посмотреть онлайн помощь по этой проблеме? --------------------------- Да Нет --------------------------- when trying to log on to the server, CC31 error is installed. No module installed (deathmatch) the person had the same problem, but he was not helped1 point
-
ع حسب الاكواد المستخدمه بالمود الخاص بك واستخدم الفنكشن دا عشان تقفل وتشغل الزر guiSetEnabled1 point
-
1 point
-
1 point
-
عادي، اذا تقصد ايديت مثلاً وتكتب فيه عدد الأشخاص اللي تبيهم يقدرون يدخلون الماركر، تقدر تستخدم الوظائف ذي : guiGetText -- تجيب الرقم اللي كتبته في الايديت tonumber -- تحول النص إلى رقم لأن الإيديت يعطيك نص وليس رقم getPlayersInMarker -- تتحقق من عدد اللاعبين هل هو يساوي العدد اللي في الإيديت triggerServerEvent, addEvent, addEventHandler -- عشان ترسل النص اللي في الإيديت من الكلينيت للسيرفر يبقى عليك يا انك ماتخلي الوظيفه تتنفذ أو أنك تنقل اللاعب بعد ماتتحقق من عدد اللاعبين داخل الماركر. شفت رد بموضوع ثاني عن هالشي، ما أعرف aPlayer السينتاكس حق ذي بالضبط، لكن عدل . root خلها أهلاً وسهلا (: .1 point
-
guimessages الأرجمنتات حق المود كالتالي : exports["guimessages"]:outputServer(player, text, r, g, b) player = ( source, root, client ) اللاعب الي تبي ترسلها له مثل text = الرساله r, g, b = اللون + اذا كلنت سايد exports["guimessages"]:outputClient(text, r, g, b) text = الرساله r, g, b = اللون يعني كودك هيصير هيك exports["guimessages"]:outputServer(root, "#E9E206 #0000FF:[ " .. getPlayerName(aPlayer) .. " ]: فائز بالمسأبقة" ,30, 171, 210)1 point
-
Если исключение можно отследить на уровне скрипта, то его также можно слать напрямую. Это ведь то же событие. На какие-то низкоуровневые segmentation fault'ы вроде народ не жалуется и сервер сам по себе стабильно работает. В любом случае если сервер упал, то он и в лог ничего не запишет. Для таких ситуаций нужно что-то внешнее. Или о каких исключениях идет речь? Про добавление новых событий. Если в лог пишется прям все все, то возможно на мта сервер и не нужно будет лезть. Просто эта работа уже была сделана ранее, когда добавлялся вывод в лог для этого события Мне кажется мы не о том спорим. Вы спросили конкретный вопрос, а я начинаю парить свое мнение. Сори Из коробки нет возможности писать в удаленное место логи. Нужно придумывать свое решение, чтобы это реализовать.1 point
-
1 point
-
For that you need to add on player login or on player join function then add your xyz positions1 point
-
Maybe server owner enabled allow_gta3_img_mods in mtaserver.conf, which block modified gta3.img files.1 point
-
1 point
-
1 point
-
Понял. Рекомендую не париться с логами, а напрямую обращаться к веб серверу и вызывать необходимые действия. Для этого можно использовать https://wiki.multitheftauto.com/wiki/FetchRemote Мне кажется logaddress_add это какое-то извращение. Да, если есть задача хранить огромное количество логов на удаленном сервере, чтобы не забивать жесткий диск боевого сервере, то да, это может быть не плохой выход. Но если нужно просто реагировать на события на сервере, то это сильно избыточно. Почему бы просто не дернуть нужный скрипт на веб сервере? Ведь это же гораздо проще чем держать отдельный сервер обработки логов (да еще и на Ruby), который 90% времени будет впустую греть процессор распарсивая чат логи1 point
-
1 point
-
Mtasaمو على اساس البزران اليلعبو يعني غيرت رايك تبي تصير من شلة البزران امزح امزح اهنيك على الشغل البطل يا بطل1 point
-
Hey Maybe It's late but I had no time to reply here at all. So yeah. After installing the old drivers on my laptop the problem with fps drops and screen flickering is gone. Everything works fine now, thanks for the help all of you, especially @Dutchman1011 point
-
API اكثر استخداماً في نقل البيانات عبر الانترنت خصوصاً JSON لأنها أسرع في الوصول للبيانات وأسهل في القراءة والكتابة وتقدر كمان تستخدمها كاوبجكت في الجافاسكربت لانها أصلا اوبجكت جافاسكربت وكتابة البيانات أقصر من الاكس ام ال وتوفر المساحة XML اما تدعم أنواع بيانات كثيرة أكثر من الجسون البيانات اكثر تنظيماً من الجسون تقدر تستخدم أكثر من اسم للقيمة عكس الجسون في رأي جسون أفضل للويب في ارسال البيانات واستقبالها وكمان لتطبيقات الجوال1 point
-
Since MTA works very well with Steam version of GTA SA, why not have MTA client in Steam store? I've seen on many Steam topics that lot of MTA players would like that to happen.1 point
-
أول شي وضح لنا وين تكتب الساعة والدقيقة والثانية؟ والعد التنازلي وين تبيه يجي؟ مثلاً لو بتسوي إيديت تكتب به الساعات والدقايق والثواني وتسوي زر يوم تكبس عليه يبدأ العد التنازلي ويظهر على ليبل ^ لو بتسويه كذا ؛ إستخدم هالوظايف .. guiCreateEdit guiCreateButton guiCreateLabel guiGetText guiSetText setTimer getTimerDetails Event: "onClientGUIClick" Event: "onClientRender"1 point
-
الموضوع سهل جداً, ما عليك بس غير انك تحسب وتسوي تايمر الحين الثانية ب 1000 في التايمر يعني 60000 = دقيقة والساعة فيها 60 دقيقة يعني احسب كذا 22 x 60 x 60000 = 79200000 يعني 22 ساعة ... مع وظيفة setTimer وما ابخل عليك بمثال .. تفضل : setTimer( function() outputChatBox("لقد مرت 22 ساعة من الآن", root, 255, 255, 0) end, 79200000, 0 ) server side هالكود رح يطلع رسالة بالشات كل 22 ساعة كذا : لقد مرت 22 ساعة من الآن شكلك فاهم غلط, هو يبي مثلا عنده لبل يكتب فيه السنه واليوم والدقيقه والثآنيه, يبي الثواني كل مره تقل يعني مثلا هي 100 تصيرر 99 لين تصير0 والدقائق تصير 29 بدل ما كانت 30 ... بالضبط مثل مود الوقت في التآب , بس الوقت بالتاب يبدأ من 0 هو يبيه يبدآ ينزل من رقم محدد1 point
-
صرآحه الكود في تعقيد ذذ ولكن آقدر افيدك إنك تحاول كذآ, function(Sec) if ( Sec >= 60 ) then Seco = tonumber(Seco or 1861860 ) -1 end end function(Min) if ( Min >= 60 ) then Mine = tonumber(Mine or 31035 ) -1 end end function(Year) if ( Year >= 60 ) then Years = tonumber(Years or 517 ) -1 end end1 point
-
مثآل ذذ function Thetime () local time = getRealTime() local hours = time.hour local minutes = time.minute local years = time.year outputChatBox("Time now :"..hours..":"..minutes..":"..years.." ") end addEventHandler("onClientResourceStart",resourceRoot,Thetime) اذا تبيه يتحدث سوها على لبل وأستخدم ايفنت onClientRender1 point