Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/04/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)
    3 points
  2. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله تعالى وبركاته لأن أظن أغلب الناس ماتعرفه وتحسبه معقد interpolateBetween جاي أشرح لكم فنكشن تابعو معي يمكن الشرح يكون طويل لكن اتمنى تستفيدو تعني الإقتحام مابين أو التأثير بين بكل بساطة كل ماعليك معرفته هو مثل من - الى الفنكشن يسمح لك تسوي أنيمايشن (حركة) بين 6 نقاط حيث تتمثل الثلاث الأولى من إحداثيات البداية والثلاث الثانية النهاية سواءا كان : لوحة - صورة - تصاميم دي إكس - ماركر - كاميرا .. أي شي له إحداثيات # الجملة التركيبية للوظيفة float float float interpolateBetween ( float x1, float y1, float z1, float x2, float y2, float z2, float fProgress, string strEasingType) : العناصر المطلوبة x1, y2, z2 : (..إحداثيات بداية التأثير ( الحركة x2, y2, z2 : إحداثيات نهاية التأثير fProgress : مدة الإحراز أو التقدم التي يأخذها التأثير ( الوقت ) ويكون نوعا ما ب ميلي ثانية strEasingType : نوع الحركة أو التأثير اللذي تريده الأمثلة رح توضح أكثر أعرف انكم مافهمتو بعد حتى نجيب قيمة ب ميلي سكند أو ميلي ثانية نستخدم getTickCount fProgress الوظيفة تقوم بجلب مدة الوقت اللي جهازك كان شغال فيه بالميلي سكند وببعض حسابات نكون اللي نحطه بالنهاية moveObject أنواع الحركة ... تماما مثل من الويكي https://wiki.multitheftauto.com/wiki/Easing الموقع فيه جدول يوضح لك كل أنواع الحركة وكيف تأثيرها مثال لهذا "Linear" : كيفية تأثيرها يعني بشكل مستقيم دون تأثيرات ثانية بالمثال يتضح المقال # الأمثلة # مثال 1 المثال يوريني كيف نخلي لوحة تجي من فوق الى الوسط sx, sy = guiGetScreenSize() test = guiCreateWindow((sx - 454) / 2, (sy - 502) / 2, 454, 502, "test", false) -- لوحة function pop() local rh = interpolateBetween( (sy - 2) / 2,0,0, (sy - 502) / 2,0,0, (getTickCount()-start)/1800, "OutElastic") -- نعرف قيمة واحدة لأننا نريد الإرتفاع فقط guiSetPosition(test,(sx - 454) / 2,rh, false) -- نخلي موضع اللوحة على حسب اللي نبيه end bindKey("F2", "down", function () guiSetVisible(test,true) addEventHandler("onClientRender",root,pop) -- الفنشكن يستخدم مع الرندر start = getTickCount() -- نعيد تعريف وقتنا حتى يتعرف عليه عند الضغط على الزر end) getTickCount()-start/1800 نعيد نجيب الوقت ننقصه من وقت البداية اللي هو عند الضغط على الزر نقسمه على وقت النهاية اللوحة رح تجي لمدة ثانية و 800 ميلي سكند وليس بعد على الأرجح رح يطلعنا start a nil value لذا نقترح نعرفه مرتين "OutElastic" بهذا الشكل ض2 نقدر نستعمل واحدة او اثنين او ثلاث شرط مايكونو فوق ثلاث لأننا مانحتاجهم نحطهم صفر مثال 2 cam نوضح كيف نسوي كاميرا تتحرك من موضع لاخر عند كتابة الكومند start = getTickCount() addCommandHandler("cam", function() start = getTickCount() addEventHandler("onClientRender",root,moveCam) end) function moveCam() x1, y1, z1 = interpolateBetween(500,600,452,800,454,411,(getTickCount()-start)/4000, "Linear") x2, y2, z2 = interpolateBetween(510,620,512,850,464,471,(getTickCount()-start)/4000, "Linear") setCameraMatrix(x1, y1, z1, x2, y2, z2) end الإحداثيات غير مجربة قاعد أخبص فقط لتوضيع المعنى مثال 3 نوري كيف نلون ليبل (كتابة) عند دخول تأشيرة الماوس إليه start = getTickCount() test = guiCreateWindow(454,503, 454, 502, "test", false) label = guiCreateLabel(100, 0, 252, 20, "testing", false, test) guiLabelSetColor(label, 255, 0, 0,255) -- نحط مثلا لون أحمر function colorTheLabel() color1, color2, color3 = interpolateBetween(255,0,0,0,255,0, (getTickCount()-start)/2000, "Linear") -- نحوله من أحمر الى أخضر لمدة ثانيتين end function RestColor() color4, color5, color6 = interpolateBetween(0,255,0,255,0,0, (getTickCount()-start)/2000, "Linear") -- نحوله من أحمر الى أخضر لمدة ثانيتين end addEventHandler("onClientMouseEnter",label, function() start = getTickCount() removeEventHandler("onClientRender",root,RestColor) addEventHandler("onClientRender",root,colorTheLabel) guiLabelSetColor(label, color1, color2, color3,255) end ) addEventHandler("onClientMouseLeave",label, function() start = getTickCount() removeEventHandler("onClientRender",root,colorTheLabel) addEventHandler("onClientRender",root,RestColor) guiLabelSetColor(label, color4, color5, color6,255) end ) الكتابة رح تتلون من احمر الى أخضر عند دخول الماوس اليه و يتحول من اخضر الى أحمر عند الخروج صفحة الويكي https://wiki.multitheftauto.com/wiki/InterpolateBetween هذا كل شي لقد تعبت أتمنى الشرح يكون واضح أي شي غير مفهوم أو غلط يرجى التعليق لأن بعض الأكواد غير مجربة اللعبة ماسحها الموضوع سيتم إعادة تنسيقه حين رجوع جهازي إلي السلام خير الختام
    2 points
  3. لا طبعاً, اذا كان سيرفر سايد راح ينزل عالخادم فقط عموماً سويت لك اليوزفل فنكشن ذا function createNewLog ( myMessage ) if ( myMessage ) and ( myMessage ~= "" ) then local file = fileCreate("login.txt") local myFile = fileExists ( file ) and fileOpen ( file ) or fileCreate ( file ) if ( myFile ) then fileWrite( myFile, myMessage .. "\n" ) fileSetPos( myFile, fileGetSize ( myFile ) ) fileClose ( myFile ) end end end
    2 points
  4. A Renegade Network Server ______________________________________ The Zombie Invasion The Zombie Invasion is a Zombie TDM/RPG server. It focusses on only one aspect: making sure the player enjoys his time. The Zombie Invasion is an ongoing project since early 2014, and we've been developing ever since. Our playerbase record is 70 players, reached in 2015. Without furder ado, here are some screenshots. ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- We have alot of beautiful, post-apocalyptic maps in our server. You can roam around the server, and you'll certainly find some great work! We also have alot of things you can do! Kill zombies, earn XP and level up, unlock teams and classes, buy a :~load of guns, kill Nemesis, do side missions, save survivors at the red cross, hunt for supply drops, kill others, run for presidency, make a group and have fun together, donate to get nice extra stuff, buy a Buggy and drop some bombs, and more! You can even be a zombie yourself! Do you want to pay us a visit? We would love to see you in-game! Visit us now at mtasa://92.42.44.53:22133! Join our Discord! http://discord.gg/bEncKkKMYE Join our Website! http://renegadenetwork.net/ See you in the apocalypse! - The Zombie Invasion Staff Team
    1 point
  5. *Note: topic has been unpinned and locked because of reduced incidence (or complete vanishing) of the issue. If you experience this, then it's something similar and not the same issue, please create a new support section topic. There's been increased counts of MTA players getting blackscreen problems when quitting MTA or alt-tabbing, the problem is due to Windows 10 updates that are flawed and not only MTA is affected. Windows 10 Creators update can worsen the problem, and this topics contains solutions and workarounds that you can use for now. 1) In all cases, setting Borderless window (in MTA settings > video > Fullscreen mode) will solve the problem. If you don't like the graphics appearance difference with Borderless or have another reason you cannot use Borderless, you can: - Fix the blackscreen once it happens (for this, hold Windows key and press 'P' and then hit Arrow down and Enter (repeat the Arrow down max. 5 times and hit Enter after each Arrow down press, eventually you will hit the right mode and display output will return) - Prevent the blackscreen from occuring: end the Multi Theft Auto.exe process instead of ''Quit'' (this can have adverse effects with configs etc, not recommended) - Reduce the chance it happens with 90%: click ''Quit'' while still connected to a server, instead of quitting whole already disconnected. The alt-tab blackscreen occurs more often with the Windows 10 Creators update. This update might even increase the frequency of the problem appearing in general. We don't recommend anything but preventing it to happen at all if you're affected by the problem; using step 1, switching to Borderless mode. It's doubtful if MTA can include a fix if Microsoft doesn't yet release updates that fixes the bug; the problem is with dwm.exe (Desktop Window Manager) and contrary to what you would think, most affected users have only a single monitor. Also please everyone who had this problem, reply in this topic, so we can estimate how widespread the issue is.
    1 point
  6. السلام عليكم ورحمة الله وبركاته , شرحنا اليوم عن 3 وظآئف, سحب / جلب / إعطاء مال للاعب نبدأ بأول وظيفة على بركة الله, وهي اعطاء مال للاعب معلومة مهمة * : هذي الوظيفة تقوم بالزيادة على مال اللاعب * الوظيفة للملف سيرفر و كلاينت نأخذ اول شيء كيف تكون للملف سيرفر ؟ تركيب الوظيفة :- givePlayerMoney ( player thePlayer, int amount ) player thePlayer :- اللاعب اللذي تريد اعطاءه مال int amount :- المبلغ المراد إعطاءه للاعب بالارقام نأخذ مثال بسيط في هذا المثال , اذا قام بكتابة كوماند يعطيه مال addCommandHandler ( "Give" , -- كوماند function ( plr ) -- وظيفة givePlayerMoney ( plr , 1000 ) -- اعطاء الااعب مال end -- انهاء الوظيفة ) -- اغلاق الكوماند بعد ما اعطيناكم كيف تكون بملف سيرفر , بحط لكم كيف تكون بملف كلاينت ؟ تركيب الوظيفة :- givePlayerMoney ( int amount ) int amount :- المبلغ المراد اعطاء للاعب ناخذ مثال :- قي هذا المثال اذا ضغط زر يعطيه قلوس ، addEventHandler ( "onClientGUIClick" , root , -- عند الضغط على الزر function ( ) -- وظيفة if ( source == aButton ) then -- التحقق من الزر givePlayerMoney ( 1000 ) -- اعطاء اللاعب مال end -- انهاء التحقق من الزر end -- اتهاء الوظيفة ) -- اغلاق الحدث طبعا انتم تسالون ليش ب سيرفر نحدد اللاعب وكلاينت لا ؟ الجواب بسيط لانه كلاينت يعني الاعب نفسه والآن مع الوظيفة الثانية اللي هي :- جلب مال اللاعب ، الوظيفة سيرفر وكلاينت نأخذ اول شي جهة سيرفر :- تركيب الوظيفة :- getPlayerMoney ( player thePlayer ) player thePlayer :- اللاعب المراد جلب النقود منه مثال :- في هذا المثال اذا كتب كوماند يجلب ماله ! addCommandHandler ( "get" , -- كوماند function ( plr ) -- وظيفة outputChatBox ( " تملك مال "..getPlayerMoney ( plr ).." معك " , plr ) -- اخراج نص بالشات بالمال الذي يمتلكه اللاعب end -- انهاء الوظيفة ) -- اغلاق الكوماند مثال 2 , في هذا المثال نتحق من ان مال اللاعب اكبر من 800 ويخرج له نص بالشات addCommandHandler ( "mm" , -- كوماند function ( plr ) -- وظيفة if ( getPlayerMoney ( plr ) >= 800 ) then -- التحقق من ممال اللاعب انه اكبر او يساوي 800 outputChatBox ( " انت تنلك مال اكثر من 800 او 800 " , plr ) -- اخراج نص بالشات بانه يمتلك اكثر او يسواي 800 end -- انهاء التحقق من المال end -- انهاء الوظيفة ) -- اغلاق تلكوماند انتهينا الانمن جهة سيرفر ، نروح للجهة كلاينت ونتعرف على تركيب الوظيفة في جهة كلاينت getPlayerMoney ( ) * لا يوجد ارقيومنتات لأنه في ملف كلابنت ، كماوقلنا سابقا كلاينت يكون للاعب نفسه نأخذ مثال بسيط , في هذا المثال يقوم بالتحقق من مال اللاعب , اذا يساوي 200 يعطيه صحة ! addEventHandler ( "onClientGUIClick" , root , -- حدث عند الضغط على الزر function ( ) -- وظيفة if ( source == aButton ) then -- التحقق من الزر اللذي ضغط عليه if ( getPlayerMoney ( ) >= 200 ) then -- اذا كان معه 200 واكثر setElementHealth ( localPlayer , 100 ) -- اعطاءه صحه end -- انهاء التحقق من المال end -- انهاء التحقق من الزر end -- انهاء التحقق من الوظيفة ) -- اغلاق الحدث والآن يا أصدقائي الكرام , نقوم بشرح اخر وظيفة في الموضوع وهي سحب مال من اللاعب الوظيفة كلاينت وسيرفر :- نبدا اولا بجهة سيرفر والجملة التركيبية :- takePlayerMoney ( player thePlayer, int amount ) player thePlayer :- اللاعب المراد السحب منه ! int amount :- المبلغ المراد سحبه نأخذ مثال :- في هذا المثال عندما يكتب كوماند يتحقق من ماله ويسحبه ! ويعطيه سلاح addCommandHandler ( "Weapon" , -- كوماند function ( plr ) -- وظيغة if ( getPlayerMoney ( plr ) >= 50 ) then -- التحقق من مال اللاعب takePlayerMoney ( plr , 50 ) -- سحب مال من الللاعب giveWeapon ( plr , 31 ) -- اعطائه سلاح end -- انهاء التحقق من المال end -- انهاء الوظيفة ) -- اغلاق الكوماند وهذا كل شي , والسلام عليكم ورحمة الله وبركاته !
    1 point
  7. Hello everyone Today I was thinking of a pro idea in the "meta.xml" file. <file src = "images/*" /> The "*" represents all archives. (Loop) When I do this, everything in the resource, in the folder "images" will be imported automatically, avoiding to write each file.
    1 point
  8. Hello guys ... I will explain something important about code First [ when you ask for help, how do other help you? ] Like [ Help: how i can create an ped ? ] [ For example ] someone will write that .. -- You can use this code createPed did you understand anything ? ..................................................................................................... ..................................................................................................... ..................................................................................................... givePlayerMoney -- blue getPlayerAccount -- yellow playSound -- red At the first of explaining these codes you should know that The script consists of three files meta.xml client.lua server.lua for more information about meta.xml click here Of course, it is known that the meta.xml file is the main file in the script there is no meta.xml file, there is no script !! what about [ client file ] and [ server file ] There are special codes for Client file and special code for server file and special codes for client file and server file [ For Example ] playSound -- red red code [ for client file ] getPlayerAccount -- yellow yellow code [ for server file ] givePlayerMoney -- blue blue code [ for server file or client file ] I have not yet taken advantage of the code and how can I bring an example? Simply if the code already exists you can just click on it The browser will take you directly to the wiki page You will find both .. Detailed explanation of the code One example or more how you can know if this code for client file or server file or it [ Shared ] ? you will find Client-only function or Server-only function or Shared function where are these words ? Look at this picture Now is the time to explain the important stuff If you click on this code [ For Example ] playSound -- client only That will open page like this Look at this picture [ For Example ] getPlayerAccount -- server only -- and getAccountName -- server only Of course, you will open a page with an explanation and examples and others ........................................................... how you can create an function ?? This depends on the code you want to create for it [ For Example .. the previous code ] getPlayerAccount will be function test () acc = getPlayerAccount ( thePlayer ) end -- test: the name of the function -- thePlayer: that you want to get his account what about the "event" and the function of "event" ? -- Ex "onClientPlayerWasted" "onPlayerWasted" "onPlayerJoin" Of course, that will open page on your browser with [ Example, explained, and other ] what is meant of source ? source: This is the element that the event originated from. [ For Example ] the source in this "event" is the player who wasted "onPlayerWasted" [ For Example ] the source in this "event" is the vehicle that was blown up "onVehicleExplode" okay ... explain the event as follows create the "event" and the function and the argumnts [ For Example ] function killerProject ( _, killer, killerweapon ) if killer then if getElementType ( killer ) == "player" then outputChatBox ( " [ the killer "..getPlayerName(killer).." killer weapon "..killerweapon.." ] ", source ) end end end addEventHandler ( "onPlayerWasted", root, killerProject ) --[[ killer: an element representing the player or vehicle who was the killer. If there was no killer this is false. killerweapon: an integer representing the killer weapon or the damage type. The source of this event is the player that died or got killed. --]] where did you get these codes from ? killerweapon and killer and source Look at this picture how you can know if this event for client file or server file ? when you click on the "event" you will find Clientside event or Serverside event the first word [ Clientside event ] Indicate client file the second word [ Serverside event ] Indicate server file where are these words ? Look at this picture ...................................................................................................................... my english is bad ...................................................................................................................... تم شرح هذا الموضوع باللغة العربية
    1 point
  9. Salut, m-am gandit sa ma apuc de un proiect de server cu modul BattleRoyale si inainte sa fac asta am vrut sa va intreb daca v-ar place ideea si ati intra pe el. Daca nu stiti ce e BattleRoyale-ul, e un mod in care sunteti aruncati cu parasuta si trebuie sa gasiti arme pentru a supravietui. Dupa cateva minute o sa apara un gaz care va omoara daca stati mult timp in el si care o sa se restranga pana intr-un anumit loc unde o sa se lupte jucatorii ramasi pana atunci(La fel ca si Battlegrounds sau H1Z1). Va rog sa imi spuneti daca v-ar place un server de genul acesta si o sa incep sa lucrez la el.
    1 point
  10. p. ستورم اذا الكود هريسة اشرحلي كل فنكشن شو يسوي بالتفصيل بالزبط
    1 point
  11. ههههههههههه ض1 خلاص لا تحرجووني عارف اني مبرمج محترف ههههه امزح
    1 point
  12. هههههههههههخخ , لك مستقبل باذن الله !
    1 point
  13. هذا الفنكشن بيجيبلك كل الحسابات الي علي السيريال وانت سو لوب وحطهم بالقريد ليست getAccountsBySerial أستخدم
    1 point
  14. Official patch notes for the next update leaked, lol. Special thanks to Sommy for reporting many bugs: UPDATE: -NEW MAP: [WAR] Normandy -NEW MAP: [SEA WAR] Islands -Changed Server name one last time (removed SAAW version number) -Changed commander camera mode for 88mm Flak 36 -Changed unmounting of mortars, you now need one second to unmount it before you can move again -Implemented Focke-Achgelis Fa 223 and Piasecki H-21 helicopters -Fixed a bug where Autobalance could give US weapons to Axis and vice versa -Fixed a bug which let you spawn as US player with german skin on german spawn point and vice versa -Fixed a bug that broke vehicle shops over time -Fixed a bug where unmounting mortars could break the map dimension and cause multiple other issues -Fixed torpedo collision not loading -Fixed some warnings -Fixed wrong bomber startup sound -Fixed wrong rotation of ejected shells fired by 88mm Flak 36 -Added first-person mode for mounted machine guns -Added "shaderpednormal" by Ren712 (Accessed in video settings, as usual) - Normal mapping for Peds -Added new explosion burn mark on the ground -Added exploding head when getting a headshot -Added bloody footsteps when reaching a high killstreak -New Jeep 3D model -New flamethrower 3D model -Increased flamethrower ammo amount -Increased bomber and landing boat health significantly -Increased Autobalance threshold by 1 player to make it less annoying
    1 point
  15. @MR.NaiF-MTA كلام الأخ ايكو صحيح source = تستخدم في كلنت عأدي جدأ مثلا if ( source == button ) then guiSetEnabled ( source, false ) -- يقفل الزر الهوا button لاكن م تنفع تستخدم في ال outputChatBox في كلنت تستخدم بدون ارقمنت لاعب الكود بيصير addEventHandler ( "onPlayerJoin", root, function ( ) outputChatBox ( "مرحبأ بك في السرفر", source,255,255,255,true ) end end )
    1 point
  16. رح يشتغل أكيد , بس لما يكون مع بعض الأحداث
    1 point
  17. 1 point
  18. https://forum.multitheftauto.com/topic/93432-x-طلب-فنكشنات-x-log-system/#comment-840872
    1 point
  19. السلام عليكم ورحمة الله وبركاته شرح اليوم هو وظيفة اذا كان اللاعب زائر تركيب الوظيفة , :- isGuestAccount ( account theAccount ) account theAccount :- إسم الحساب , طبعا نجلب إسم الحساب عن طريق الوظيفة الآتية getPlayerAccount ناخذ مثآل : في هذا المثال ، يتحقق اذا كان بحساب زائر او غير مسجل ,ف يخرج له نص بالشات بانه زائر addCommandHandler ( "CheckAccount" , -- كوماند function ( aPlayer ) -- وظيفة if ( isGuestAccount ( getPlayerAccount ( aPlayer ) ) then -- التحقق من أن اللاعب غير مسجل او زائر outputChatBox ( " انت زائر " , aPlayer ) -- اخراج نص بالشات end end ) مثال 2 :- ( إرجاع ) return في هذا المثال ، نتحقق اذا كان اللاعب زائر ، نقوم بعمل شيء يسمى function isGuest ( aPlayer ) -- وظيفة ( useful function ) return isGuestAccount ( getPlayerAccount ( aPlayer ) ) -- اذا كان اللاعب زائر نقوم بالرجوع end -- انهاء الوظيفة addCommandHandler ( "Check" , function ( plr ) if ( isGuest ( plr ) ) then return end end ) والسلام عليكم ورحمة الله وبركاته
    1 point
  20. وضعي خربان ذذ ! / شكرا على التنبيه
    1 point
  21. تشفى نهار فليكسيتلك 50 نالف هذا عبد الكريم بعد ماغدرت به الحياة وما استفد شي من البرمجة صار يكتب رسائل لأحفاده الكلام للجميع
    1 point
  22. أتمنى أنكم استفدتم من الموضوع
    1 point
  23. the server is well made, the GUIs you used and literally almost everything is out of bugs but however, you also need to host your own forums because honestly its the main source to communicate nowadays and also you must script an account system, other than that? i'd recommend you to change the name of it into something that might attract players and reintroduce it. enable the chat, i might get the point that they might reveal other players location but that's not the solution, i mean you can have a bunch of rules and some staffs with you or you also can just go ahead and disable the spectate script if it exists. but after all? hell i loved it.
    1 point
  24. function delAllTopsOfPlayer(player, command, name) local accountName = getAccountName(getPlayerAccount(player)) if isGuestAccount (getPlayerAccount(player)) or not (isObjectInACLGroup("user."..accountName, aclGetGroup("Admin")) or isObjectInACLGroup("user."..accountName, aclGetGroup("SuperModerator"))) then return end if not name then outputChatBox("You must specify a player name in order to delete all of their toptimes!", player, 255, 0, 0, true) return end local otherPlayer = string.lower(name) local otherPlayerName local rname local map_names = {} for k, v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName('race'))) do rname = getResourceName(v) local mode = 'Sprint' map_names['race maptimes '..mode..' ' .. (getResourceInfo(v, 'name' ) or getResourceName(v))] = v end local maps_table = executeSQLQuery("SELECT tbl_name FROM sqlite_master WHERE tbl_name LIKE 'race maptimes %' ") for k, v in ipairs(maps_table) do local mapTable = v.tbl_name if map_names[mapTable] then local mapTimes = executeSQLQuery("SELECT playerName FROM ?", mapTable) for i, t in ipairs(mapTimes) do if getAccount(t.playerName) then if string.lower(getAccountData(getAccount(t.playerName), "currentPlayerName"):gsub( '#%x%x%x%x%x%x', '' )) == otherPlayer:gsub( '#%x%x%x%x%x%x', '' ) then otherPlayerName = getAccountData(getAccount(t.playerName), "currentPlayerName") executeSQLQuery("DELETE FROM ? WHERE playerName=?", mapTable, t.playerName) outputServerLog("Toptimes of "..otherPlayerName:gsub( '#%x%x%x%x%x%x', '' ).." deleted!") local delays = executeSQLQuery("SELECT * FROM mapinterims WHERE mapname = ?", getResourceName(map_names[mapTable])) if #delays > 0 then executeSQLQuery("DELETE FROM mapinterims WHERE mapname=?", getResourceName(map_names[mapTable])) outputServerLog("Delay times for "..otherPlayerName:gsub( '#%x%x%x%x%x%x', '' ).." deleted!") end end end end end end if otherPlayerName then outputChatBox("#FF0000All of #FFFFFF"..otherPlayerName.."#FF0000's toptimes were deleted!" , root, 255, 0, 0, true) else outputChatBox("No such player name found in toptimes database.", p, 255, 0, 0, true) end end addCommandHandler("deletealltimes", delAllTopsOfPlayer) addCommandHandler("deletealltops", delAllTopsOfPlayer) addCommandHandler("delalltimes", delAllTopsOfPlayer) addCommandHandler("delalltops", delAllTopsOfPlayer) Try this one. If this doesn't work, post a screenshot of the SQL table.
    1 point
  25. شكراً على المعلومة .
    1 point
  26. executeSQLQuery("DELETE FROM ? WHERE playerName=?", mapTable, t.playerName) Try this one.
    1 point
  27. مو لازم تحقق من العدد ماراح يكرر لو مافي سيارات
    1 point
  28. la solución mas fácil es usando dxCreateRenderTarget
    1 point
  29. setTimer ( function ( ) local aElementType = getElementsByType ( "vehicle" ); if ( #aElementType > 0 ) then for i,v in ipairs ( aElementType ) do if ( getVehicleController ( v ) == false ) then destroyElement ( v ); end end end end,5000,1);
    1 point
  30. function MrEcooEx () acc = getPlayerAccount ( source ) if acc and isGuestAccount ( acc ) then cancelEvent() outputChatBox ( "Please Login First", source, 255,255,0 ) end end addEventHandler( "onPlayerChat", root, MrEcooEx )
    1 point
  31. شرح رآئع .., إستمر في شروحاتك الجميلة .!
    1 point
  32. مبددع ي بروس , شرح جميل ورآئع جداً جداً, آستمر ..!
    1 point
  33. مالها علاقة بمصداقية المواقع SSL شهادة الشهادة تباع بفلوس و ايضا متوفره مجانا ولا علاقة لها بمصداقية المواقع او نشاط المواقع او اي شئ معروض بالمواقع SSL عموما حاليا تم تركيب شهاده
    1 point
  34. Game developing here I'm coming!
    1 point
  35. Media: We're open for suggestions! Do all the screenshots make you curious? Join us, it's not hard! People already found our server and loved it. Website changed to http://www.darkmooncommunity.com/
    1 point
  36. I'll sure visit this if there comes an english translation
    1 point
  37. Visit our website at http://www.darkmooncommunity.com
    1 point
  38. The server is raising in playerbase. Thanks to all of you who visited my server! I'm planning on expanding into a community including multiple servers. Details can be found here: I'll keep you all updated with information (regarding the new server will be done on it's respective page) and updates/news. Media will be posted later.
    1 point
  39. Thanks! Changelog: A few minor updates and fixes + a developer (pro scripter) got hired, meaning that the development will progress faster! We have big plans for the future! Please join our server and enjoy your time, survivor! (NOTE: Every screenshot has been taken ingame, I did not edit/hide/add anything.)
    1 point
  40. Thanks mate. The server is in continuous development, meaning the server is never finished. We'll keep updating it!
    1 point
  41. Multi Theft Auto قوانين منتدى .الرجاء إتباع هذه القوانين لضمان بقائك هنا .Multi Theft Auto اهلاً ومرحباً بكم في منتديات باختصار شديد .استخدم التفكير السليم ولا تفعل أي شيء يسبب لنا المتاعب لضمان عدم تسبيبنا لك المتاعب ايضاً حسابات المستخدم .لن يسأل طاقم مشرفين المنتدى او فريق المطورين عن كلمات المرور الخاصة بحساباتك في المنتدى أو اللعبة او الخدمات الأخرى .(في مثل هذه الحالة (أنظر أدناه لمعرفة معلومات الاتصال الخاصة بنا IRC إذا فقدت معلومات حسابك القديم يمكننا مساعدتك في استرجاعهم. تواصل معنا على .يمكننا دمج حسابين أو أكثر في حساب واحد عند الطلب هذا المنتدى قد يستخدم تفعيل يدوي للحسابات من قبل إدارة المنتدى كوسيلة لإيقاف الهاربين من الحظر وال سبام بوت بسبب هذا، حسابك قد لا يتم تفعيله .مباشرة الرجاء عدم إنشاء حساب إضافي لأنه لن يتم تفعيله بشكل أسرع، إلا إذا كنت تحتاج إلى حساب إضافي أو قد مرت 24 ساعة منذ تسجيلك للحساب الأصلي ولم تتلقى أي رسالة تفعيل على الإيميل. .يمكن للمستخدم امتلاك أكثر من حساب، طالما لن يتم استخدامهم لكسر قواعد المنتدى أو أي أفعال خبيثة مثال: الهروب من الحظر أو التلاعب بإحصائيات المنتدى .استخدام حسابات متعددة لوضع آراء مزيفة عن السيرفرات أو الإستضافات أو المودات إلخ.. ممنوع بتاتاً :وبالمثل، نحن نسمح بمشاركة الحسابات، باستثناء الحالات التالية .الحساب المشترك لديه حقوق المشرف - مشاركة مثل هذا الحساب غير مسموح به إطلاقاً .واحد من المستخدمين المشاركين للحساب محظور .(الحساب مشترك بنية المصلحة الشخصية بواسطة واحد من المستخدمين (مثال: التلاعب بإحصائيات المنتدى .الحساب مشترك بنية تخريب موضوع في المنتدى عن طريق وضع ردود خارج الموضوع نصائح عامة .الرجاء استخدام زر البحث لمعرفة ما إذا كان سؤالك قد سؤل من قبل .إذا لا تستطيع معرفة مكان مشاركتك، يمكنك البحث عنها. فيمكن ان يكون قد تم نقلها .الرجاء تصفح صفحة الويكي أولاً إذا لديك مشاكل .هذا المنتدى يتم إدارته من قبل أشخاص متطوعين. الرجاء احترام جهودهم، كما أنهم يفعلون هذا في وقت فراغهم .يمكنك التظلم من حظر او قرار اتخذ من قبل احد المشرفين - انظر للنصائح ادناه لمعرفة الطريقة الصحيحة للقيام بذلك .إهانة مشرف أو الدخول في مجادلة معه هو ليس الطريقة الصحيحة لفعل هذا. يمكنك توقع إجراءات إضافية منا إذا فعلت هذا نصائح عن وضع المشاركات .إذا تريد إنشاء موضوع، الرجاء استخدام القسم المناسب له. يمكنك إيجاد الأقسام في الصفحة الرئيسية الخاصة بالمنتدى .تأكد من إضافة عناوين واضحة لمواضيعك. بعض العناوين التي تتكون من كلمات مثل "ساعدوني" أو "ارجو القراءة" .ليست واضحة على الإطلاق .الرجاء تجنب المشاركات المزدوجة .لا تقم بإعادة وضع مشاركة أو موضوع أو محتوى أكثر من مرة في أقسام مختلفة .لا بأس أن تعيد مشاركة ترجمة محتوى قد تم كتابته بالإنجليزية في الأصل في قسم اللغات الأخرى (أو العكس) طالما أن هذا لا يكسر القوانين الأخرى .إذا يوجد موضوع مشابه لذلك الذي تريد أن تُنشئه، شارك في هذا الموضوع، بدلاً من إنشاء موضوع جديد يمكنك رفع موضوع قديم إذا قد تم إنشاؤه بواسطتك، أو إذا الموضوع يخص مشكلة أنت أيضاً تواجهها. يرجى القيام بهذا باعتدال، وفقط بعد مرور بعض الوقت منذ أن شاركت. .إذا كنت تنوي أن ترفع موضوع خاص بالدعم في شيء ما، يجب تزويد بعض التفاصيل عن المشكلة في المشاركة الجديدة، إذا كانت متوفرة .الرجاء استخدام الأقتباس باعتدال. عادة لا داعي لاقتباس محتوى الكاتب الأصلي كاملاً، أو المشاركة التي توجد مباشرة فوق مشاركتك، فيرجى عدم فعل هذا إذا كنت تحتاج إلى إضافة كود في مشاركتك، اضغط الزر '<>' وقم بأختيار نوع الكود الذي ترغب في وضعه في مشاركتك .هذا يجعل كودك سهل للقراءة ويزود الكود بألوان لتسهيل قراءته وتمييزه .عند مشاركة أكواد في هذا المنتدى، أنت توافق على أن تدع الكود يبقى ظاهر للكل حتى يتقرر خلاف ذلك من قبل إدارة المنتدى لا تقم بالرد على المشاركات المزعجة أو المشاركات التي تخالف قوانين المنتدى بشدة، يرجى الإبلاغ عنهم بدلاً من ذلك! السبب لهذا هو أنه إذا قمت بالرد على سبام بوت، ردك سوف يبقى حتى وإن قمنا بحذف جميع المشاركات التي تمت من قبل ال سبام بوت. هذا لا يترك لنا عمل أضافي فحسب، بل أنه من الممكن أيضا ان يؤدي إلى التعليم على حسابك بالخطأ لإزالته بسبب مشاركة محتوى غير مرغوب فيه. في نفس الوقت، يرجى الملاحظة أننا سوف نقوم بتجاهل البلاغات الصادرة بشأن خلاف ناشئ بين بعض المستخدمين التي يقوم فيها المبلغ بالطلب منا أن .(نقف في صف أحد منهم (المخالفين قوانين المنتدى العامة في الأقسام الرئيسية كل المشاركات يجب أن تكون باللغة الأنجليزية ويجب أن تكون في الأقسام المناسبة. للغات غير الأنجليزية، لدينا قسم خاص باللغات الأخرى: هنا. .قد يتم رفضها MTA طلبات معرفة تواريخ الصدور أو موقع الأختبار التجريبي أو معلومات بشأن المميزات المستقبلية لـ العنصرية و التعصب و النشاط الغير قانوني غير مقبول بأي شكل من الأشكال، سواء كان ذالك مشاركات أو صوراً أو تواقيع. ويشمل هذا الصور الإباحية و العنصرية، و اللغة العنيفة و الأهانات من أي نوع. كسر هذه القاعدة يمكنه أن يؤدي إلى فرض حظر فوري. .لا تقوم بإهانة أو انتحال شخصية أعضاء المنتدى .تجنب الوقوع في جدال ديني بقدر ما يمكن. هذا منتدى للعبة. وليس منتدى لمناقشة المعتقدات والجدال فيها. ليس لدينا أي مشاكل مع أي من معتقداتك، فقط لا تجرنا لهذا ."لن يتم التسامح مع إثارة المشاكل و"الحروب المشتغلة .التهرب من الحظر لن يتم التسامح معه و سيتم التعامل معه بصرامة .عدم وضع ردود تحتوي على الابلاغ عن هاكات او اشخاص او اياً كان خارج إطار المنتدى، وكذلك يمنع التحذير منهم .يمنع إتهام شخص بسرقة مودات .لا يسمح بالتصرف كأحد المشرفين. إذا كنت ترى أن شيئاً ما يجب القيام به حول موضوعاً أو مشاركة أو عضواً قم بالإبلاغ عنه و دع القرار للمراقبين .الخاص بنا EULA لا تشارك أي شيء ضد ال .MTA لا تضع أي برنامج يمكن أن يستخدم للغش في اللعبة بـ .MTA لا يحق لك الإعلان عن منتجات او خدمات او مواقع تحتوي على مضمون غير مرتبط بـ بموقعنا. .إذا كنت ترغب في الإعلان عن السيرفر الخاص بك أو خدمة استضافة سيرفرات - استخدام القسم المناسب لذالك هنا قونين الملف الشخصي (500x150 | 720x80 يجب أن يكون إجمالي حجم الصور في توقيعك في حدود (بيكسل .أي شئ اكبر من هذا الحجم قد يتم ازالته عندما تتم ملاحظته .يجب للتوقيعات أن تستخدم أحجام خطوط معقولة وفقط عدد محدود من الروابط التظلم من قرار مشرف ومعلومات الإتصال .(#mta قناة GTANET شبكة) IRC يمكنك التواصل مع مشرف عن طريق الرسائل االخاصة المدمج بمنتدانا، أو ابحث عنه في القناة الخاصة بنا على الرجاء عدم التواصل مع العديد من المشرفين أو المدراء عن نفس الموضوع. يمكنك التواصل مع مشرف آخر إذا لم يتم الرد علي مشكلتك بعد مرور 48 ساعة على الأقل. .مشرفينا يتم اختيارهم من قبل اعضاء موهوبين ونشطين من مجتمعنا. نحن نثق في القرارات التي يتخذونها .مع ذلك، إذا لست راضٍ عن قرار مشرف معين، يمكنك التواصل معه مباشرة عن قلقك. تأكد من أن تكون مؤدب واشرح وجهة نظرك جيداً .إذا ما زلت لست راضٍ عن القرار، يمكنك التواصل مع مشرف أعلى رتبة ليحل المسألة. كما أعلاه، كن مؤدباً واشرح وجهة نظرك أفضل من ذلك التظلم من الحظر .إذا تم حظرك، يرجى عدم المبادرة بإنشاء حساب جديد في المنتدى. إذا فعلت ذلك، سوف يتم حظرك مرة أخرى لهروبك من الحظر، ومدة حظرك الأصلية ستزيد #mta في irc.gtanet.com IRC بدلاً من ذالك يمكنك طلب أزالة الحظر في القناة الخاصة بنا أو عن طريق الاتصال بنا بوسائل أخرى (@ - operators and % - halfops أبحث عن الأسماء الي تحتوي على علامات مثل) .إذا كنت محظوراً في القناة أيضاً، لا تحاول التهرب من الحظر. أطلب من شخص آخر الأتصال بنا .على حسب مخالفاتك، سنصدر مدة لألغاء حظرك. عندما تنتهي المدة، أطلب منا مرة أخرى لإلغاء حظرك .يمكنك أيضاً التظلم من حظر دائم أو كلي. لكن تذكر، في مثل هذه الحالة، ينبغي لك أن ترينا بعض الندم أولاً .(يرجى الملاحظة أننا قد نرفض طلب إلغاء حظرك لأي سبب (مثال: بسبب السلوك المسيئ تجاه مدير إذا كنت تريد رفع الحظر عنك في أحد سيرفرات أم تي أي، يرجى الأتصال بمالك السيرفر فنحن لا يمكننا رفع الحظر فليس لدينا أي سلطة على ذلك السيرفر، أسهل طريقة للأتصال بصحاب السيرفر هي عن طريق الذهاب إلى موقع السيرفر أو البحث عن معلومات أتصال في القسم الرئيسي القوانين الخاصة بالأقسام الأقسام (غير الإنجليزية) العالمية .التوجيهات الأساسية. يمكن لقواعد إضافية أن تنطبق، على حسب القسم .يمكنك فقط المشاركة في هذه الأقسام إذا تتكلم اللغة الخاصة بهم. غير ذلك، لا تشارك هناك .بالإضافة إلى ذلك، المناقشات الإنجليزية غير مسموح بها في هذه الأقسام بشكل عام. المشاركة بالإنجليزية في هذه الأقسام يمكن أن يؤدي إلى صدور تحذير بعض الإستثناءات تنطبق - إذا أنشأ مشرف موضوع في مثل هذه الأقسام بالأنجليزية، حينذلك يمكن للمستخدمين الآخرين (فقط هؤلاء الذين يتكلمون اللغة الخاصة بالقسم) أن يشاركوا بالإنجليزية في هذا القسم أيضاً. General Multi Language discussion المشاركة بالإنجليزية مسموح بها (ويفضل ذلك) في قسم .قد يكون الإشراف في بعض الأقسام محدود إذا ليس لدينا مشرفون فصيحون في اللغات الخاصة بهذه الأقسام البرمجة ستتم إضافة قوانين لاحقاً المساهمات ستتم إضافة قوانين لاحقاً الخوادم ستتم إضافة قوانين لاحقاً القسم العام ستتم إضافة قوانين لاحقاً ملاحظة بسيطة بخصوص هذا القسم: لا مشكلة في المشاركة في المواضيع القديمة فيه Other او مدير منتدى إذا لم تتلقى رد في وقت مناسب Lead Global Moderator إذا لم تعد تنوي زيارة منتدياتنا، يمكننا أزالة حسابك الشخصي، يمكنك الطلب من اي .نحن نحتفظ بحق عدم إزالة مشاركاتك عند إزالة حسابك، لأنه يمكنهم أن يكونوا مفيدين لبعض المستخدمين الآخرين لكن تذكر، يجب أن تكون عضو نشيط في المنتدى Other Languages نحن نبحث عن مشرفين جدد بإستمرار، خصيصاً في الأقسام غير المراقبة في قسم .ويكون لديك عدد كبير من المساهمات للمنتدى حتى يتم أخذك بعين الإعتبار من قبلنا ما نعتبره مساهمات للمنتدى: مشاركة محتوى مفيد أو أصلي، مساعدة أعضاء المنتدى، الإبلاغ عن المشاركات والمواضيع المزعجة ومساعدتنا في تنظيم المنتدى. ما لا نعتبره مساعدة: وجود عدد هائل من المشاركات التي تحتوي على محتويات عادية (غير مفيدة) أو مناقشات منتظمة. ناهيك عن كسب هذا العدد بطرق تخريبية. .IRC للتقدم بطلب إشراف، الرجاء التواصل مع مشرف عن طريق رسالة خاصة أو عن طريق ال .تذكر أن طلبك سوف يتم مشاركته مع المشرفين الآخرين. هذا لضمان أن الطلب يتم مناقشته وتقييمه بصورة صحيحة .إذا فشلت في الإلتزام بهذه القواعد، قد يتم حذف مشاركتك او موضوعك فوراً بدون سابق إنذار و (أو) قد تواجه عقوبات إضافية بحسب شدة المخالفة -- فريق MTA ملحق أ - المصطلحات .رفع موضوع يحدث عندما يقوم مستخدم بالمشاركة في أحد المواضيع بنية وضعه في أعلى قائمة المواضيع الخاصة بالقسم لجذب الإنتباه ملحق ب - قائمة الإجراءات الإدارية الممكنة لانتهاء القواعد .(رسالة خاصة عن شكوى من المشرف (عادة هذا فقط الذي يحصل، على شرط أن يكون المستخدم متعاون معنا .(تحذير (ينتهي بمرور الوقت، يمكن أن يرُى في حساب المستخدم; الحصول على 3 تحذيرات أو أكثر في نفس الوقت يمنع المستخدم من المشاركة .(تقييد المشاركة (أي مشاركات أو مواضيع جديدة تمت بواسطة المستخدم قد تتطلب موافقة من مشرف .(حظر مؤقت (لا يمكن للمستخدم دخول المنتدى خلال وقت معين; اي حظر إضافي سيكون بمدة أطول .(حظر مؤبد (كما في الأعلى، باستثناء أن المدة لا تنتهي; يمكن إزالتها بواسطة رفع تظلم حظر كلي من كل الخدمات (نظراً إلى المخالفات المستمرة الحادة، أو استغلال الثغرات، أو استخدام برامج غش في اللعبة، أو مشاركة مود خطير; تمنع المستخدم .(ويتضمن ذلك اللعبة أيضاً MTA الوصول إلى أي شيء يخص ال .(رفع شكوى على المستخدم للمزود الخاص بالانترنت الذي يستخدمه (آخر وسيلة إذا المستخدم مازال يسبب لنا مشاكل
    1 point
×
×
  • Create New...