Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/06/17 in all areas

  1. Hello, We, the eXo-Reallife team, would like to release a module that is also used on our server. It is a pathfinding module developed by Jusonex and StiviK. The module uses the A * algorithm. (https://en.wikipedia.org/wiki/A*_search_algorithm) We use this for our GPS: Why did we develop a module for this and did not simply write a script? This has a very simple reason. The module calculates the routes in your own threads, which has the advantage that it is much faster than a script, and secondly, you can calculate how much routes as you want side by side. This will not cause any lags etc.! What are the features of the module? The module can load several graphs / nodes side by side The module calculates the routes in its own threads Very useful API functions (such as findNodeAt or getNodeNeighbors) What are the main features? int loadPathGraph (String pathToGraphFile) This function loads the graph from the given file and returns a GraphId which you need for all other functions. If something does not work, false is returned. bool findShortestPathBetween (int graphId, float startX, float startY, float startZ, float endX, float endY, float endZ, function callback) This function finds the shortest route between the points. (Unfortunately, no vectors can be handed over!) The callback function is called when the calculation is finished. As an argument, either a table is returned that contains all nodes, or false if no route is found. bool unloadPathGraph (int graphId) You can use this function if you no longer need and want to unload the graph, it returns true if everything is fine, false if an error has occurred. You will find all the other functions that are included in our documentation. Why is the eXo team releasing all this? Well, that has the simple reason, we want to share our work with others and not just keep it for us! We hope we can enrich you with it and vlt. Even help! Where can I download the module? The whole module is open-source and can be viewed in our GitHub organization. It's released under the MIT License. GitHub organization: https://github.com/eXo-MTA Repository: https://github.com/eXo-MTA/ml_pathfind Download the module (Windows / Linux): https://github.com/eXo-MTA/ml_pathfind/releases Nodes of all roads in SA: https://github.com/eXo-MTA/ml_pathfind/blob/master/test/sa_nodes.json If you find any mistakes or suggestions, you can simply create a new issue and we will look into it. So now that's it, have fun with the module! - StiviK and the eXo-Reallife team (Original thread in German: https://www.mta-sa.org/thread/36365-release-mta-sa-pathfinding-module/?postID=407938#post407938)
    2 points
  2. Yeah, I guess that's the "line 112" And yes, you can even use ur mum as key in lua
    2 points
  3. منتاز لا اوصيكم يا شباب كلكم خشوا وكل واحد يخش له 50 ريال من واي فاي بالتوفيق
    2 points
  4. 'Alpha' J Series is completely custom open world sandbox server based around my extended development of Gostown; Within this server you can find a huge completely custom map called Gostown, 2 islands, one has a city atop a mountain that scales taller then mt.chilland and has much geographical features such as forests, slopes, cliffs, and plenty more. On the other island sits an old world war style airport with a quarry and a decent sized city right down the road. -------- Currently, the game mode mostly revolves around racing with a completely new type of tune shop the likes of which has never been seen before in MTA, with many features, with the ability to tune near every aspect of your vehicle, this is a racers, tuners, ricers, drifters, etc delight. The map - Media : Server Stats : http://104.233.101.128/serverwebsite/ Server IP: mtasa://104.233.101.128:22003 Side note - Server may not perform well under very low spec computers, however, we offer options to try to improve your frame rate.
    1 point
  5. triggerServerEvent getPlayerSerial triggerClientEvent
    1 point
  6. ذا يتحقق من مكان الماوس ماله شغل بتغيير اللون
    1 point
  7. تقدر تستعمل حفظ البيانات حق لوحة التسجيل عن طريق ملفات xml و وقت اللاعب يدخل سوي ارجاع للقيم الموجودة ( من ملف كلينت ) وارسلها بالترايجر لملف سيرفر اللي فيه امر التسجيل
    1 point
  8. OH wow.. it would be great if you put that back guys, specialy for the tree i've mentioned above because it causes alot of fps issues and the Mappers are spamming it in their maps.
    1 point
  9. اي كذأ يطرد الكل, وبدل Reason بـ السبب التبيه مثلأ تقولهم صيانه للسرفر - حياك الله
    1 point
  10. Not just that line actually, but on these lines 4, 8, 16, 20. You probably copy-pasted them.
    1 point
  11. No, that doesn't seem right at all. local twonodes = { "login", "rpteszt" } local thirdnodes = { [1] = {"username","password", "rememberMe"}, [2]={"rpteszt"} } local values = { [1]={"false"} } Such a helpful fellow you are.
    1 point
  12. If you look at setTimer on the wiki, you will understand, but to give you an idea local myTimer = setTimer( function(text) outputChatBox("Timer after 5 seconds: " .. text) end, 5000, 1, "myParam1") function myFunctionName(text) outputChatBox("Timer after 5 seconds: " .. text) end local myTimer = setTimer( myFunctionName, 5000, 1, "myParam1") -- function() ... end -> anonymous function -- myFunctionName -> if you already have a function you will call -- 5000 -> when should the timer start in ms, so 5000 = 5 seconds -- 1 -> how many times the timer should run, every 5 seconds | 0 = infinite -- myParam1 -> parameters you will pass to the function
    1 point
  13. اجل لاحد يخش اول يقول بيعطيكم والحين مايبي
    1 point
  14. لأستلام الفلوس يجي القطب الجنوبي في كهف ابو ليلية
    1 point
  15. 9/10 its amazing but the glass pool as the said looks bad.
    1 point
  16. احذف السطر الثاني
    1 point
  17. How retarded you should be to blame programming language
    1 point
  18. خصوصياته الله يصلحكم وانا ماعندي فضول للاسف
    1 point
  19. It doesn't say that. If you want to log that, you will need to create a script for that. local function announceUnban( theBan, responsibleElement ) if getElementType( responsibleElement ) then --Check if a player unbanned the IP/Serial outputServerLog( getPlayerName( responsibleElement ) .. " unbanned " .. ( getBanSerial(theBan) or getBanIP(theBan) ) ) --Output to the chatbox saying the player has unbanned the IP/Serial else outputServerLog("Resource unbanned: " .. ( getBanSerial(theBan) or getBanIP(theBan) ) ) --Output to the chatbox saying the player has unbanned the IP/Serial end end addEventHandler( "onUnban", root, announceUnban ) --Adds the event handler for 'onUnban' But there is way to check that without the script. It will not always be 100% accurate. You will have to scroll up to the places where the players have been banned. Open: server\mods\deathmatch\banlist.xml Check which ones have been removed. With that information you can pinpoint which admins might have removed that ban.
    1 point
  20. Você pode substituir a textura padrão da arma por uma invisível, e posicionar diferentes objetos (substituído por mods de armas) na mão do personagem quando ele estiver utilizando tal id de arma. Aqui um exemplo +/-: (Quando vc pega a mp5 ele cria uma bazuca, ai vc atira balas de mp5 usando uma bazuca :D) O resto vai da imaginação, da para mudar o som da arma, o efeito da bala e tals... (Sim, com gambiarra vc pode criar novas armas)
    1 point
  21. server\mods\deathmatch\logs\server.log There you will find things like this: (ban) [2017-04-29 15:54:14] ADMIN: XXXX has banned XXXXX [2017-04-29 15:54:14] BAN: Serial ban was added by Anonymous admin And things like this: (unban) [2017-04-29 15:59:56] UNBAN: A ban was removed by XXXXXX
    1 point
  22. المفاجآت مو الموفاجات الله يصلحك .. علعموم بتوفيق <3
    1 point
  23. شكرا لكم شباب المشكلة كان في تحديث كارت شاشة ح حملت برناج انتقل من موقع سمي وخليتها يفحص ويشوف مشكلة وجدت كارت جرافيك راح حملها ومجح شكراااا لكم
    1 point
  24. Did you really ban yourself? You are fantastic! https://wiki.multitheftauto.com/wiki/RemoveBan
    1 point
  25. اه اوكي لكن شو فيدة شو بسوي بالكود لو بجيبو ؟ مشكور سوكونج
    1 point
  26. That's not completely true, on certain servers that allow using gta3.img skin mods you can still use them. There are quite some servers who did so by editing <allow_gta3_img_mods> setting in mtaserver.conf to: <allow_gta3_img_mods>peds</allow_gta3_img_mods> and the reason I'm explaining that here is so you could ask your favourite server's owner to allow it. By default it's disallowed because it's undefined. Also you're saying you ''cannot use custom models'' which may confuse some people; for clarity, only Skin/ped mods are disabled for use by default unless the server allows. When a server didn't make a conscious decision/took steps to block vehicle or other type of client mods, it will just work. But as I said in the case of skin models the majority of servers are already blocking it because of a default setting. and @Fiction-^ I cannot avoid to mention you could've been a little less rude/bold in your answer to a new forum user. Besides my last answer you're not really clear about that but if you're not neccesarily wondering about client mods (adding the skins to your gta3.img) but for example own or administrate a server, you can use this script example to load server skin mods: addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource() ), function () txd = engineLoadTXD ( "skinmodel.txd" ); -- change 'skinmodel' to your mod's file name engineImportTXD ( txd, 190 ); -- change the ID 190 into the GTA skin ID you with to replace with mod dff = engineLoadDFF ( "skinmodel.dff", 190 ); -- change 'skinmodel' to your mod's file name engineReplaceModel ( dff, 190 ); -- change the ID 190 into the GTA skin ID you with to replace with mod end ); as you say you're really new to it and know nothing, I will also go more in-depth: name the above file ''replace.lua'' and then proceed creating a new .xml file and add in the below code & save as ''meta.xml'': <meta> <info type="misc" name="Load skin mod" author="none" description="Replace skin script" version="1.5" /> <file src="skinmodel.txd" /> -- rename to your mod filename, likewise and matching in replace.lua <file src="skinmodel.dff" /> -- rename to your mod filename, likewise and matching in replace.lua <script type="client" src="replace.lua" /> </meta> Put this replace.lua and meta.xml in a folder and use it as resource within your server (place in MTA San Andreas 1.5 > server > mods > deathmatch > resources, and start it by entering to the server: ''start [resourcename aka how you named the folder] And ofcourse if you own/administrate a server or a local server is sufficient to do what you need with the mods, you can allow client gta3.img skin/ped mods on the server (using the mtaserver.conf instruction in the beginning of my post) rather than resorting to running serverside mods like the script example. @Yelrix
    1 point
  27. 1 point
  28. - مهو انت لو بتفهم اصلاً كنت عرفت ان FAQ مش سبة
    1 point
  29. go in-games and use /stop freeroam. Simple isn't it?
    1 point
  30. try something like this: <?php $fp = fsockopen("127.0.0.1", 22005, $errno, $errstr, 10); if (!$fp) { echo "Server is offline"; } else { echo "Server is online"; fclose($fp); } ?> If the server does not respond within 10 seconds, PHP will output "The server is offline", otherwise it will output "The server is online" Of course, replace 127.0.0.1 with your servers IP address and 22005 with your servers port.
    1 point
×
×
  • Create New...