Leaderboard
Popular Content
Showing content with the highest reputation on 01/04/17 in all areas
-
بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة انا سويت دورة عن كيف تسوي موقع دردشة .. وممكن يفيد بعضكم وسلام خير الختام4 points
-
4 points
-
Your posts did make me wonder, was this really the case, so I run a little test of my own to prove or disprove the theory. I have no idea how it's done in MTA's source code, nor did I bother to look, but I took it upon myself to find out through real example. Testing environment setup as follows: Latest editor definitions from nightly.mtasa, no edits or tweaks whatsoever Client&Server build: v1.5.3-release-11225 Running resource during the time of testing: none, apart the resource being tested A map with random 12k objects No world movement, no camera movement, MTA minimized Lua map converted with OP's website, without blips attribute (I also highly suggest removing the said feature as it may cause significant changes in performance & loading times) & ran client side Server FPS Limit: 60 Results: .map: .lua Conclusion: .map is just fine as it is, but .lua allows better manipulation, the very important one being able to load a .lua map with async based on priority, and minimizing client side creation lag or prioritizing other server objects over other less important things Hope this clears up some of the confusion. Keep in mind this was a very basic test without much fiddling around, if someone could confirm it by doing their own please do.3 points
-
2 points
-
قلت لك مرتين تأكد من القروبات موجوده او لا كان انحلت من بدري المهم حصل خير وبالتوفيق يارب.2 points
-
ما راح تفرق الي ضعيف بالبرمجة نعلمه و المحترف يعلمنا احنا فريق متحد كلنا واحد2 points
-
Welcome to Dynasty Network, Yeah we had a topic before the cleanup but this time we cameback bigger and better. Our topic will be managed way better then it was before and i'll put all my time into keeping this up to date also backups will be made daily. I hope you like this @HAZJ. But that's it about the topic. Now let's head into the server and show what we are currently Developing. We are currently in Alpha state and are testing / optimising everything so you guys won't encounter bugs. This is due the fact we got a strict punishment if it goes about bug abusing and such. Getting caught using bugs etc in your advantage will result in a permanent ban. Feel free to leave a like and reaction, I would really love it since it's showing interest and that you are supporting the development of it. You can find us on our forums which are currently under development.Go to Forum to make sure you have an account when you try to join our server. Also make sure you join our discord channel on the following link : Coming soon , We aren't going to give our server IP yet due the fact we are still developing the server. But as soon as it is done i'll release the ip so you guys can join and checkout our brand new community. Previews will be showcased when I do think it's ready to get spread1 point
-
NeXuS™ presents dxLib Introduction You want to work with dx functions, but you don't understand them? This is a script for you. You can create panels created by dx functions just like with GUI functions. Status IN DEVELOPMENT Sorry guys, its not finished yet, so I'm not publishing it. This is just a show off, that you'll get this in weeks. Whats done already Screenshots Syntax1 point
-
#قمة_الاخلاق السيده عائشه سألت النبي : مين أكتر واحده بتحبها في زوجاتك يارسول الله ؟؟ فقال لها : أنت ياعائشه ...فقالت : إذا أخرج عليهن وأخبرهن جميعا ، فضحك النبي وأعطاها تمرة ، وقال لها في الليل أجمعهن وأخبرهن ، ولا تخبري أحدا أني أعطيتك تمرة وإنصرف ومر علي كل واحدة من زوجاته وسألها عن أحوالها ، وأعطي كل واحدة منهن تمرة وأخبرها ألا تخبر أحدا ، وفي الليل إجتمعن وسألته عائشه : أي من زوجاتك تحب أكثر ؟! فأبتسم النبي وقال : صاحبة التمره ، فهي من أحبها أكثر فابتسمن جميعا وفرحت كل واحده بداخلها وفرحت كل واحده لحب رسول الله لها..... وانك لعلى خلق عظيم. النبى محمد اعظم خلق الله اللهم اجمعنا به فى الجنة.1 point
-
Have the MTA Team setup an official Discord server? I saw an unofficial one on a topic a few weeks back and joined it, but somebody speaks once every few days and it's full of weird bot scripts. Would be an idea to get one going, especially as it can link to IRC.1 point
-
Всем привет. Совсем недавно скончался наш хороший друг, он участвовал во многих проектах в таких как: IV:MP и многих других. Также он был создателем AMX для MTA, который позволял запускать Pawn скрипты в MTA. О самой смерти передала его девушка: Давайте все вместе почтем память. Таких людей как он единицы. Он был хорошим, добрым, жизнерадостным человеком. Светлая память!1 point
-
Back in the past there was a website that could convert maps created with the official in game map editor to a corresponding Lua script. Unfortunately tho that website appears to be down by now, so I've created my own converter using some regular expressions to find properties in a map file and generate a corresponding Lua script. Here's how it looks: So why would you convert your maps to Lua then? well there are many reasons, for instance: Reduce file size, converted Lua files is around 20% the size of it's corresponding map file. Ability to use the local cache, obviously a good thing since players won't have to download your maps every time they connect. Easy to customize, only one line needs to be changed to make all objects double sided, breakable etc.. (optional) Attach a discrete blip to each map object so that players can see where custom mappings exist. Since it uses regular expressions it will try to convert any input, no matter if the syntax is right or wrong. All properties from your map files are supported including, position (x,y,z), rotation (x,y,z), interior, dimension, breakable objects, double sided objects, blips and removal of world objects. The site is encrypted with SSL/TLS and nothing is logged or saved to prevent anyone from stealing your valuable maps. Here's the link to the site: https://lua.wuss.pw/1 point
-
You need to render it on screen for every frame with this event: addEventHandler("onClientRender", root, function() dxDrawImage (x/2, y/2, 500, 500, "assets/death.png") end)1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
function ujraeledes() local varjalMar = setTimer( function() spawnPlayer (source, 0, 0, 0) setCameraTarget (source, source) fadeCamera (source, true) triggerClientEvent ("stopHalalMusic", source) end, 120000, 1) end1 point
-
I don't know what your server is or how it looks like, if it has 3rd party mods on objects, no wonder it takes longer to load. I've just tested creating objects and it wasn't even noticeable at all. Please note if you create huge amounts of objects at once near localPlayer (inside his stream; 300m radius) it will lag no matter which map loader type is being used due to GTA/MTA creating the objects and loading them in stream. It's kinda insane to do that around a player, it's better to warp him somewhere safe until objects are created because here are results: The process depends on client's CPU but even on slower systems it makes 100k objects outside stream under a second or two1 point
-
I have been using maps in lua format for years and never experienced problems. 4089 objects, 600 streamed in. (all loaded client side) When i took the screenshot above, only three resources were running (admin, runcode and a small spawn script) Absolutly no lag, very low cpu and memory usage. My CPU.1 point
-
@CodyJ(L) You keep repeating the same thing. Can you tell us some info for instance? Like how much objects were you testing, how does it generally work? I can create 30,000 objects in an instant and edit their properties if needed or move them while they're being created without any stuttering. Maximum ever lag i had recorded for it was merely one second, but in 95% cases it's barely even noticeable that it did anything.1 point
-
1 point
-
ابو الخيال .... كفو لكن يا ريت توضح الكتابة .... واذا ما فيها تعب ماستر يبي صورتين ميشان لوحة التسجيل ابيك تفهم منه اكثر وتسويهم اذا معك وقت1 point
-
Can you send your server sided script where you call the openLevelW event?1 point
-
function ujraeledes() local varjalMar = setTimer( function() spawnPlayer (source, 0, 0, 0) setCameraTarget (source, source) fadeCamera (source, true) triggerClientEvent ("stopHalalMusic", source) end, 120000, 1) end)1 point
-
1 point
-
تسسسسسلم و مشكور الازرار الي تسأل عنها Special skin هذا اضغط عليه ويخلي اللسكن او الشخصيه طبعا لازم اجهز شخصيه لكل لوحة و Color هذا تغغير لون السياره ومشكووووور @1 point
-
Found it. local fontTab = {} function mtrxButton(a, b, c, d, text, fontSize, r, g, bc, parent) local button local label if (parent) then outputChatBox(b) button = guiCreateButton(a, b, c, d, text, false, parent) --button = guiCreateStaticImage(a, b, c, d, ":test_font/button_green.png", false, parent) outputChatBox("Created w/ parent") outputChatBox(a .. " " .. b .. " " .. c .. " " .. d) else --button = guiCreateStaticImage(a, b, c, d, ":test_font/button_green.png", false) button = guiCreateButton(a, b, c, d, text, false) outputChatBox("Created wo/ parent") end label = guiCreateLabel(0, 0, c, d, text, false, button) setMtrxFont(label, fontSize) guiLabelSetColor(label, r, g, bc) guiLabelSetHorizontalAlign(label, "center", true) guiLabelSetVerticalAlign(label, "center") addEventHandler("onClientMouseEnter", label, function() guiStaticImageLoadImage(button, ":test_font/button_red.png") end, false) addEventHandler("onClientMouseLeave", label, function() guiStaticImageLoadImage(button, ":test_font/button_green.png") end, false) return button, label end function setMtrxFont(gui, fontSize) for i = 1, #fontTab do if (fontTab[i][1] == fontSize) then guiSetFont(gui, fontTab[i][2]) return end end table.insert(fontTab, {}) fontTab[#fontTab][1] = fontSize fontTab[#fontTab][2] = "default-bold" --fontTab[#fontTab][2] = guiCreateFont("default", fontSize) end GUIEditor = { img = {}, window = {}, mtrxButt = {} } GUIEditor.window[1] = guiCreateWindow(194, 111, 391, 237, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.img[1], GUIEditor.mtrxButt[1] = mtrxButton(48, 45, 104, 51, "I'm the button #1", 10, 0, 0, 0, GUIEditor.window[1]) GUIEditor.img[2], GUIEditor.mtrxButt[2] = mtrxButton(200, 107, 144, 60, "I'm the button #2", 11, 0, 0, 0, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) local x, y = guiGetPosition(GUIEditor.img[1], false) outputChatBox(x .. " " .. y) addCommandHandler("buttest", function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end) You had the "b" for the y and "b" for the blue color. Btw, sorry for all that :~ in there, just change your main code by renaming one of the "b"s in your function.1 point
-
1 point
-
function handlerFunction(thePlayer) local oX, oY, oZ = getElementPosition(ggate) if oZ ~= defz then gateclose(thePlayer) else gateopen(thePlayer) end end addEventHandler("onResourceStart," getResourceRootElement(), function() for i, k ipairs(getElementsByType("player")) do bindKey(k, "down", handlerFunction) end end) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "down", handlerFunction) end) I think this one should work.1 point
-
^ هي اساسا سترنق بالجدول!؟ كيف يحولها لسترنق صاحب الموضوع تأكد من اسماء القروبات اولا، او سوي تحقق اذا كان القروب موجود عن طريق aclGroupList -- loop aclGroupGetName1 point
-
وش هو؟ Id تمام، طيب ال وكم الرقم اللي فيه؟ Id يعني انت كل مره تبغى تنقص ال طيب كم تبغى تنقصه 1 ولا 2 ولا؟ المهم اتوقع اللي تبيه كذا id = ( tonumber ( id ) ) - 1; setPlayerDiamond ( getPlayerFromName ( player ), id ) غير السطر الاول، رقم واحد غيره للعدد اللي تبي تنقصه حتى لو كان عدد من عشره.1 point
-
انت تبغاه كل شوي ينقص واحد؟ ما ادري وش الساينتكس حق الوظيفه ذي لكن جرب كذا : setPlayerDiamond ( getPlayerFromName ( player ), ( tonumber ( id ) ) - 1 ) للمعلوميه كذا التنقيص ماراح يغير الرقم اللي داخل المتغير الأساسي* بمعنى اذا تبغاه يتغير مره استخدم الطريقه الثانيه فوق *1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Hi Community! I Present Today a New Map! Hope You Like It! ►Searching for a recorder? Contact us in skype: ◘ Chipy's skype; juan.videla314 ◘ ShuX's skype: 2profgamers1 point
-
1 point
-
One issue with this general logic, although it may be smaller; it is actually a lot more laggy to using .lua mapping vs .map mapping.1 point
-
Yeah, that's all you'll have to do. If you need further help with that one too, feel free to ask.1 point
-
السلام عليكم ورحمة الله وبركاتة Lua هذا القسم مخصص فقط للمشاكل و الشروحات المتعلقة باي لغة برمجية بإستثناء قوانين هذا القسم كالتالي : يرجي عدم إنشاء موضوع واحد لجميع المشاكل , علي سبيل المثال ( اي مشكلة لديك يمكنك الإستفسار عنها بهذا الموضوع ) وما الي ذلك و هكذا ( Java - ممكن مساعده؟ ) يجب وضع اسم اللغة التي تواجه فيها مشكلة بجانب اسم الموضوع , علي سبيل المثال في حال تمت الإفادة وبعد فترة من الوقت تريد الإستفسار عن سؤال اخر بنفس اللغة البرمجية يرجي منك إنشاء موضوع اخر وعدم التكمله بنفس الموضوع السابق * القوانين قابلة للتعديل في اي وقت ونرجو منكم الإلتزام بقوانين القسم وبالتوفيق للجميع1 point
-
Сторонние модификации не поддерживаются вообще, никакие. МТА требует всегда чистую копию игры. Более того данная модификация является ASI библиотекой, которая инжектится в процесс аналогично обычной DLL, что вообще МТА не любит и приравнивает к читам. Используйте на свой страх и риск.1 point
-
NeXuS™ presents dxScrollText Introduction Do you want to make a scrollable text? It's easy with just a helper. Status IN DEVELOPMENT It's still IN DEVELOPMENT but it's published. Screenshot Usage Go ingame, put the file inside resources, start it, and press F7. After it, create your panel, by left clicking and dragging, and press enter. If you are done with that, start typing, and press enter. Voala, it's done. Download MTA:SA Community Link (At the moment, the download link is unavaible, because the resource got suspended by sbx320. I'm talking with him in PMs, to sort this out. If you need the ready resource, hit me up here with a PM, and I'll send it to you.) Syntax - Source code1 point
-
Я до сих пор не понимаю причины хэйта со стороны сумп коммьюнити о Multi Theft Auto. Ведь MTA предоставляет широкий спектр постоянно обновляемого функционала для разработчиков серверов, с Lua намного приятнее работать, о читерах можно забыть, конкуренции очень мало. Те же RolePlay. Ведь люди делают действительно интересные фишки на своих серверах, а новые игроки, узнавая о таких проектах, не задумываясь переходят в MTA. Тем более, в скором времени будут открыты несколько очень крупных проектов (конечно же - жанра RolePlay), которые привлекут огромную массу игроков.1 point
-
So do I, without hesitate, I started my server with it, even thought, the MTA bot is not ready (linking game and discord). The UI is amazing, it's also beautiful that you can see it's platform in all operating systems. It's too safe, never get affected if anything bad happened. I highly recommend it!1 point
-
Over the past year a lot of people have been migrating from TeamSpeak, Skype and IRC to Discord, myself included. Some great features are that you don't need to host it yourself, setup is very quick, easy and painless and there is support for both voice and text transmission.1 point
-
Ни на сколько. По крайней мере на уровне скриптинга. Педы в МТА не регистрируются как игроки и в сокете их не видно, это всего лишь такой же элемент (entity) как и автомобили.1 point
-
Вообще это сработает и в мта. И кстати попадалась некая админка переделанная, с особой фишкой, накруткой игроков, незнаю насколько реально. Но дополнительные 5-10-15 игроков, могут значить не мало для dayz. Причем если реальных игроков больше половины, да хотя-бы треть(если не продолжительно и не часто), и один-два человека отвечающих в чате за всех накрученных, возможно никто и не уличит во лжи. Конечно все относительно, не в любом случае сработает, не для любого сервера, не с любыми игроками. Я точно не знаю, но наверно ключевым является поиск + сортировка по кол-ву игроков. А у вас пичаль-беда в мониторинге никак не отсортировать... Вот кстати говоря о накрутке: Вроде бы выходит кривая статистика, но данный пример показывает что не так уж много накручивают, раз он один такой, меня лично и накрученные их цифры, за исключением казусов выше, не впечатляют. Другой пример CCD, сляпали гибрид обычных crmp и samp серверов, и всё онлайн как на анаболиках. Почему так? Да банально раскручивались нормально. Взять ту же раскрутку dayz серверов на ютубе, сделает смотр или просто серию известно кто, и всё, даже при жутких багах, основанных как правило не только на кривости, но и несовместимости собранных в кучу ресурсов, при том он в своих видео ни толком как игрок себя не показывает, ни толком сам сервер, но весело же, и все думают что они зайдут, и всем будет также весело. Другой ютубер постоянно снимает на своем сервере, и вроде бы и далеко не самый худший из тех кто серверы делает, но и сервер не слишком выдающийся, и неудачное создание новых серверов, да и то что мало снимает на других серверах много значит. Ещё к примеру, один на форуме не любимом здесь, раскручивают с переменным успехом, но профит вроде как неплохой. Но все это воду в ступе толочь, никто не привлекает людей извне мта. И привлекать из самп уже поздно, он помирает, поколения выросшие на нем, взрослеют. А других никто так и не стал привлекать. Вот и живем за счет тех у кого не тянут всякие новые выживалки, обновят компы и всё жо.. Единственное курсы валют в странах СНГ, позволяют надеятся что немногие обновят конфигурацию в ближайшее время.1 point
-
Всё дело в сложности. Вы аудиторию SA-MP видели? Так вот, каждый пятый (а может и второй) - это очередной "разработчик" игрового режима который по их мнению уникален. Написать игровой режим, даже жанра РП никому не составляет сложности (даже пускай он будет лагать - это всех устроит). Теперь посмотрите на MTA. Чтобы написать даже самый простой игровой режим, нужно уже иметь хоть какие-то знания о программировании (хотя бы основы). Архитектура на много сложнее. Какие-то "ресурсы", "дерево элементов" или "клиент/сервер" - для них это не понятно. Если в SA-MP вы можете написать РП режим в одном файле размером в 100к строк, где любой вызов функции работы с клиентом - синхронен (или же возвращает закэшированные данные), то в MTA всё по другому. Здесь нужно писать всё самому вникая в тонкости. Даже такие банальные вещи как GUI: в SA-MP - просто диалоги, в MTA - полноценный GUI. В SA-MP есть некие TextDraw (или как их там) в котором всё уже реализовано за вас, в MTA есть доступ к Direct3D, естественно на клиенте. Они не ненавидят, они просто боятся признать, что для них это слишком сложно, и таким образом маскируют это ненавистью. AddServerBot - это что? Нативная функция SA-MP?1 point
