Leaderboard
Popular Content
Showing content with the highest reputation on 21/04/19 in Posts
-
السلام عليكم بدون مقدمات كل واحد يشاركنا بصورهـ لوجهه هذا أنا البندر : ملاحظة مهمة : نفسي أشوف وجه تابل المشرف بالمنتدى4 points
-
2 points
-
العفو , حياك الله ولو تبي تعرف اكثر عن هذا الموضوع شوف هذا شرح سويته اول ما نزل الفنكشن2 points
-
2 points
-
Render events enhancement Having a lot of render events in your resource? Easier attach and remove? Or do you want to pass arguments in to a function which is attached to a render event? Then this might be something for you. Syntax: addRenderEvent bool addRenderEvent(function functionVar [, string eventName, arguments ...]) Arguments: The function you want to attach/target. The event you want to use. ( "onClientRender", "onClientPreRender", "onClientHUDRender") If you do not fill in one of these three, it will automatic fallback to "onClientRender". Fool proof. Arguments you can pass to the target function. (which isn't possible with the default addEventHandler + onClientRender function) Returns: true when added, and false otherwise. Syntax: removeRenderEvent bool removeRenderEvent(function functionVar [, string eventName]) Arguments: The function you want to attach/target. The event you want to use. ( "onClientRender", "onClientPreRender", "onClientHUDRender") If you do not fill in one of these three, it will automatic fallback to "onClientRender". Fool proof. Returns: true if found + removed, and false otherwise. (Not recommended to execute this function every frame > performance) onClientPreRender + timeslice If you use "onClientPreRender", just like the default event, it will pass the timeSlice to the attached/targetted function. https://wiki.multitheftauto.com/wiki/OnClientPreRender I am not sure if attached is the right word for this example, because it isn't really attached to the event. It is saved in a table which gets looped every frame. Performance Is this code bad for performance? The answer to that is NO. I ran a test for it, and it seems that addRenderEvent used less CPU AFTER adding the events. (addRenderEvent: 31% CPU, addEventHandler 99/100% CPU) Adding the event will probably use more CPU, but that is only one execution. Feel free to re-test this example, I am interested how it would perform on your pc's. Performance test code (Not the source code ) Source code:1 point
-
1 point
-
1 point
-
1 point
-
OneLife - Survival DayZ [MTA] What is OneLife? OneLife is an MTA community, We want to offer our players the full fun, which is why we have a dedicated team for each of our projects. However, I'll tell you something about our DayZ server now Dayz Features: The login system: The first thing every player sees from a server is of course the login system. To give our players a change, we have added a completely different login system on our server which differs from the other unedited DayZ scripts. The Spawns: You spawn with us in newly added Various Spawns on the map. In the inventory you will find some start items that may guide you through this difficult time. Money: On our server you have the opportunity to earn money by killing zombie's and players. Trading: By earning money you also have the opportunity to exchange items and vehicles with players. This is usually done in the safe zone as this is the safest place. The Safezone: If you need peace and quiet from the whole survival, the Safezone is just right for you. There you can relax, and just enjoy the peace and quiet. There are actually always players to be found, which, however, can neither shoot nor aim. In Safezone, your survival time and your existing blood do not go up or down Of course you are safe there from the birth of hell. Custom Map: On our server we have a lot of own mapping. In addition to the normal "reconstruction work" to a destroyed world. And much more: In addition to the listed features, there are still many more to explore! How can you see it all? Very easily! Trust in us and try your luck in the wilderness between zombies, bandits, animals and heroes! HOW DO YOU REACH US ?: You can only reach our game server with the MTA client The IP is as follows: mtasa: //192.99.197.9: 22013 You can reach our Discord at: discord.gg/EqGhKpD At the end I thank you for your attention. I hope I see some of you in the game soon.1 point
-
1 point
-
You could perhaps do a hash check. Get the SHA256 (or MD5 but it's not considered secure nowadays) hash of the decrypted data and compare it against the hash that you know it should be, and only if they match proceed to engineLoadDFF/engineLoadTXD. E.g. local dffFile = fileOpen("files/"..file_dff) local dffData = fileRead(dffFile, fileGetSize(dffFile)) dffData = base64Decode(teaDecode(dffData, file_key)) fileClose(dffFile) local txdFile = fileOpen("files/"..file_txd) local txdData = fileRead(txdFile, fileGetSize(txdFile)) txdData = base64Dec if hash("sha256", dffData) ~= "enter_the_SHA256_hash_that_the_dff_data_should_have" then return false end -- abort function if hashes mismatch after decryption if hash("sha256", txdData) ~= "enter_the_SHA256_hash_that_the_txd_data_should_have" then return false end -- ditto -- ... local dff = engineLoadDFF(dffData) -- in case of incorrect key, shows warning here local txd = engineLoadTXD(txdData) -- and here. (bad path)1 point
-
حسب بحثي السابق ان هندسة برمجيات ترتكز اكثر في ادارة المشاريع البرمجية اكثر منها في تطوير البرمجيات وعلوم الحاسب مختص اكثر في تطوير البرمجيات هذي اللغة تعتبر اللغة الاساسية الي راح تتعلمها في الكلية او الجامعة, لو كان عندك وقت قبل لا تدخل الجامعة استغله كله في تعلمها1 point
-
1 point
-
You'll probably need to use base64Encode and base64Decode (this will inflate file size to about 133% [difference is higher with very small sizes like single character being inflated to 4 characters, 300% increase] of the original) for the files, as it appears the data is not tea-encrypted properly (somewhat known issue with teaEncode/teaDecode and encoding control characters 0-30 and others, so keep it to being strictly alphanumeric [base64 is a good candidate]); this in turn causes the function to interpret the input as a filepath rather than raw (decrypted) data. Another option is encodeString/decodeString; these functions have worked more reliably for me at least with non-alphanumeric content.1 point
-
onClientPlayerQuit isn't called for the localPlayer. You should use onClientResourceStop (that will call when the resource is either stopped, or the client disconnects and the resource stops on his end).1 point
-
سيرفر باراديس عجبني صراحة في تنسيقة وحرصة وإهتمامة لمتعة اللاعبين وتوفير لهم أجواء لعب نقية دون إزعاج وتخريب وإنتهاك حقوق نحييهم على مجهودهم وننصح الناس بدخوله متمنياً من الجميع الإلتزام بالقوانين الخاصه بهم1 point
-
لأكون معكِ صريح السيرفر جدا جدا رائع واكثر شيء خلاني استعجب طريقة تنظيمك للمنشُورة ، للامانه الشيء لي سويته انه ، يثبت كمية الترتيب ونظام في السيرفر ،اي انه اساسا انا كا لاعب لو ما اعرف السيرفر بتنفك نفسيتي اني العب ها السيرفر ، وانا على كامل الإكتفاء انه سيرفر بقيادة الاخ نواف وريتي ودريكِ ، والمبرمج مستر احمد ، يعني فُوق ها الاشياء ما اتوقع بيكون فيه مقارنة مع سيرفرات حاليا في ساحة لي فعلا اشوفها دمرت وجهة نظر الرولي بلي للبعض. ولكن تبقى مشكلة براديس في عدد لاعبين لي انا فعلا م اعير له أي اهتمام لانه في الاخير بتكون مستعد تلعب مع اثنين ثلاث اعضاء بالمقابل انك تشُوف رولي بلي منظم. حاول تركز على انك تنشر في اكثر من منصة لا تقتصر على منصة الديسكُورد او المنتدى ، وبإذن الله نشوف براديس من اكبر سيرفرات لعب الادوار ، بالرغم انه هو احد اكثر سيرفرات لي غيرة وجهة الرولي بلي الى نحُو افضل ، لكنه مظلوم بشكل كبير.1 point
-
Well this would be great, I am ready for this and I can support translating or moderating.1 point
-
1 point
-
لا يعسل مسمهاش مسخرة انا قلت ليك مش بحب ابرمج او العب غير هجولة ولو انت شفتني عمرك في سيرفر حياة تقدر تشوفني في هجولة وزومبي فقط1 point
-
1 point
-
1 point
-
Hello Can I find someone here who is designing a Fortnite map, The land is designed only, without trees or houses, for money!1 point
-
كويس انك لاحظتها والله لو سنه ما كنت بلاحظها عالعموم مشكور يعسل يشباب بالتيبل في مسافه زياده قبل 'command' شيلوها تصدق عطاني امس ايرور ومخي وقف سكرتها ههه طلع المشكلة من هنا1 point
-
1 point
-
@!#DesTroyeR_,) function getPlayerInfo ( Player , Type ) if ( isElement ( Player ) ) and ( getElementType ( Player ) == 'player' ) then local Table = { [ 'Name' ] = getPlayerName ( Player ) , [ 'Serial' ] = getPlayerSerial ( Player ) , [ 'Money' ] = getPlayerMoney ( Player ) , [ 'TeamName' ] = getPlayerTeam ( Player ) and getTeamName ( getPlayerTeam ( Player ) ) or '' } if ( not Table [ Type ] ) then return false end return Table [ Type ] end end1 point
-
1 point
-
وظيفة بسيطة و مفيدة , وظيفة إنشاء تنبيه باللوحة , CreateAttentionBox = function ( Window , Text , RedLabel , GreenLabel , BlueLabel , AlphaLabel , PropertyBox , AlphaBox , TimerSecond ) assert ( Window , 'Bug @ #1 CreateAttentionBox ; No Window' ) assert ( isElement ( Window ) , 'Bug @ #1 CreateAttentionBox ; This is not Element' ) assert ( getElementType ( Window ) == 'gui-window' , 'Bug @ #1 CreateAttentionBox ; This is not gui window' ) assert ( Text , 'Bug @ #2 CreateAttentionBox ; No Text !' ) assert ( type ( Text ) == 'string' , 'Bug @ #2 CreateAttentionBox ; Not String' ) local Table = { RedLabel = RedLabel or 255 , GreenLabel = GreenLabel or 255 , BlueLabel = BlueLabel or 255 , AlphaLabel = AlphaLabel or 255 , PropertyBox = PropertyBox or 'tl:FFA30000 tr:FFA30000 bl:FFA30000 br:FFA30000' , AlphaBox = AlphaBox or 255 , TimerSecond = TimerSecond or 4 } Box = guiCreateStaticImage ( 10 , 19 , guiGetSize ( Window , false ) - 20 , 21 , ':guieditor/images/dot_white.png' , false , Window ) guiSetProperty ( Box , 'ImageColours' , Table.PropertyBox ) guiSetAlpha ( Box , Table.AlphaBox ) guiSetProperty ( Box , 'AlwaysOnTop' , 'True' ) Label = guiCreateLabel ( 10 , 0 , guiGetSize ( Window , false ) - 20 , 21 , Text , false , Box ) guiLabelSetHorizontalAlign ( Label , 'center' , false ) guiLabelSetVerticalAlign ( Label , 'center' ) guiLabelSetColor ( Label , Table.RedLabel , Table.GreenLabel , Table.BlueLabel , Table.AlphaLabel ) setTimer ( function ( Box , Label ) destroyElement ( Label ) destroyElement ( Box ) end , 1000 * Table.TimerSecond , 1 , Box , Label ) end - لازم مود الجيوإدتور يكون شغال .. مثال :1 point
-
السلام عليكم ورحمة الله تعالي وبركاته طبعا انا زمان ما نزلت شروحات واليوم راجعلكم بشرح لفنكشن engineReplaceAnimation طبعا الوظيفة كانت موجودة من زمان علي الويكي ولاكن شالوها ورجعوها امس ويلا نبدأ بسم الله طبعا الوظيفة للكلنت فقط الان نروح للساينتكس bool engineReplaceAnimation ( ped thePed, string InternalBlockName, string InternalAnimName, string CustomBlockName, string CustomAnimName ) ped thePed = اللاعب او البيد الي تبي تبدل الحركة عليه string InternalBlockName = البلوك نيم حق الحركة القديمة الي بالاغلب الناس تستخدم ped string InternalAnimName = الي هي الحركة الي جوا البلوك نيم مثلا weapon_crouch string CustomBlockName = اسم البلوك نيم حق حركتك الجديدة string CustomAnimName = اسم الحركات الي جوا الملف حق ifp وتقدر تفتحه عن طريق برنامج gta anim manager رابط تحميل البرنامج https://gamebanana.com/tools/5979 نيجي لمثال الحين موجود بالويكي --[[ طبعا ملف حق parkour.ifp الموجود بالويكي فيه شوية حركات : BckHndSpingBTuck BckHndSping CartWheel FrntHndSpring HandPlant ]] -- من هنا تقدر تغير اسم البلوك حق الحركة من هنا local customBlockName = "myNewBlock" -- نجيب الملف الي فيه الحركات local IFP = engineLoadIFP( "parkour.ifp", customBlockName ) -- يتحقق لو انه مش موجود يقولك فشل if not IFP then outputChatBox( "Failed to load 'parkour.ifp'" ) end -- تغيير حركة يوم تنزل علي الارض عن طريق c تسوي حركة جديدة engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "HandPlant" ) وقريبا المزيد من الامثلة وطبعا الفنكشن ما خلصوه بالكامل لان فيه اخطاء مثلا خطأ الاصدار 1.3 يملا الديبق يوم تسوي اي شي فيه وفي مود سواه واحد اجنبي تقدر منه تحط تغير منه مشيات وفيه حركات جديدة اكتشفوها بأنفسكم رابط التحميل https://drive.google.com/file/d/1L2NkQYuLS0YdoHECvxVRMdPBbEgaYUfH/view ومع السلامة1 point
-
Hi all, I've decided to make a tutorial for the people who want to host a server on their PC's. It will make your server online . And you can search for it in Master Server List, It may appear in 24 hours (Mine Takes 5 to 10 mins to appear in Master Server List) IMPORTANT NOTE: This tutorial is for Windows. So, let's start. Follow the steps below:- PART I 1. Go where your MTA:SA is installed (Default C:/Program Files/Multi Theft Auto 1.3) 2. Go To server/mods/deathmatch 3. Here you will see a file named "mtaserver.conf". Open the file with wordpad or notepad. 4. Enter your server name here Default MTA Server Remember: Enter the server name between ><. Example: My Server 5. Then look down, here you'll find 32. This field is required if you want more slots (More people to enter in your server) You can change it the same way you changed the server name but the maxplayers should be in digits. Maximum Amount of slots are 4096 6. Now Go down and see 1 1 Means that server will be online in sometime after starting it. 7. Now close the file and save it. 8. Now open file "acl.xml" with Notepad or Wordpad.(Directory: server>mods>deathmatch) 9. See the file, here you'll find Here Copy This and paste into acl.xml after NOTE: DO NOT REMOVE "user" here because it is required to scan the username, Enter Your Account at "user.youraccount" Example: 10. Close the file and save it. [ YOUR LOCAL SERVER IS READY ] Now we have to make it online. See the PART II if you want your server to be online + FTP for your Server Follow the PART II:- PART II 1. Open your browser and go to http://192.168.1.1 2. Enter login details (default are:- username : admin, password : admin) If you don't know about your username and password then contact your ISP. 3. Now Go To Advanced Settings > NAT > Virtual Servers ( Mine ISP is PTCL, You can search for it in your settings too) Or if you didn't find anything related to it, You can go http://www.portforwarding.com. It contains information of opening ports. 4. Now Click on "Add" to add New Ports. 5. Add 22003 for UDP ( Port Start: 22003 , Port End: 22003) 6. Add 22126 for UDP ( Port Start: 22126 , Port End: 22126) 7. Add 22005 for TCP ( Port Start: 22005 , Port End: 22005) 8. Add 44003 for UDP/TCP ( Port Start: 44003 , Port End: 44003) 9. Now minimize the window and go to start and search for cmd. 10. You'll find Command Prompt, Open it then a window will appear shortly. 11. Type "ipconfig" there and note your IPV4 Address. 12. Now return to browser and enter your IPV4 Address here. 13. Click on Add and close the browser. Ports are successfully opened now. You need to static your IP if you want your server ip not to be changed again and again. And you don't need to open ports again and again (This Field is required if you are using Wi-Fi connection) 14. Go to your windows control panel. 15. Here You'll Find Network and sharing Center. 16. Click the network and sharing center and now on the left side you'll see a control panel explorer. 17. Click on "Change Adapter Settings" 18. Minimize the Control Panel Window and type ipconfig/all in the command prompt window. Here The Required Fields Are IPV4 Address, SubNet Mask, Default Gateway and DNS Servers. Note the Required Fields and now open the control panel window again. 19. Now right click on wifi and click on properties. 20. Wifi Properties will appear now. 21. Here You'll Find Internet Protocol Version 4 (TCP/IPV4) 22. Left Click On it once and click on properties. 23. Now Entered The Required Fields Which You've noted from the command prompt. 24. But Leave Alternate DNS As it is. 25. And Click Ok. 26. Now Your server ip won't be changed again and again. 27. Now you need to download and install FileZilla FTP Client and FileZilla Server. You can google it. 28. After downloading and installing it, Open FileZilla Server and Enter IP 127.0.0.1 and port 14147. Administration Password as you wish. 29. It will connect to the server after you click Connect. 30. Now click on Edit > Users. 31. On the right side, You'll see Add Button. Click on it. 32. Enter username now and click add. 33. If you want to add password to FTP then click on your username and click "Password" here a memo box will appear, enter your FTP Password and save it. 34. On The Right side ,There's A Explorer named as "Page:" 35. Click On Shared Folder And Now click on Add 36. Here you need to choose the mta sa server direcrory C:/Program Files/Multi Theft Auto/server and then click ok. 37. Now Open FileZilla Client And Enter your IPV4 Address in Host, enter the username you created and enter the password of the username you registered. Enter Port 21 and then click ok. 38. Now You Are Ready Creating FTP 39. Now go to MTA/Server/mtaserver.exe and after the server loads type openports. The ports will successfully be opened and your server will be successfully Online. Enjoy! MORE PICS SOON1 point
-
1 point
-
1 point
-
0 points
