Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/07/17 in Posts

  1. registry.db على قاعدة بيانات عامة executeSQLQuery sqliteاو mysqlعلى قاعدة بيانات خاصة قد تكونdbConnect فقط sqlite انها executeSQLQuery مع العلم ان
    2 points
  2. But hey, tell me what you're trying to do. I might be able to do the whole thing for you @kieran
    2 points
  3. من قلدني أثبت أني الأفضل
    2 points
  4. Business System Current Features [v1.3.1]: Creating business ingame with GUI DX texts and image on marker, containing info Business window, containing info and actions Payout, when you create a business you specify payout and payout time Bank, payout go to the bank, you can deposit and withdraw Managment, you can set name, owner, cost, bank and destroy Moving DX messages for info messages, check the screenshots When the resource stops, timers for payout are saved, loaded on start, and completed, meaning, if payout is every 1 hour, resource stopped and there was 20 minutes left, it's saved and on start the payout timer time is 20 minutes Version Check, when the resource starts, it will check if a new version is released, and will inform business admins, of new versions Uses SQLite or MySQL for saving, newest functions provided by MTA Fully written in OOP Change Log: Version 1.1: Fixed few bugs. Improved update check. Added setting to hide the info shown on the marker. Now when you sell a business, you get the money in the bank. [*]Version 1.2: New moving dxOutput, old one was hideous. Fixed blip staying after business destroyed bug. DB functions use callbacks now, thanks to Arran for telling me. [*]Version 1.3 Fully rewritten in OOP New directx user interface with the dxGUI library Can now use MySQL or SQLite [*]Version 1.3.1 Revert to CEGUI Fix info messages not being output Notes: Use /business to open Create Business GUI. There is settings in the meta for Info message type, marker color, inform player for payout, key to open business GUI, blip id, maximum number of owned businesses, hiding the info shown on the marker. Adding the resource to admin group, is necessary for version checks. Screen Shots: Download GitHub Repo Any Ideas, bugs, questions please post them. If you want to edit something and failed, post and I will help you. I'm out of ideas for the resource, if you have any, please post them.
    1 point
  5. Hello to whoever is reading this topic, today I've decided to take some time and explain in (personally) easiest possible way how to make a drawing or a GUI that will fit all resolutions, no matter if it's 1280x1024 or 640x480. Here are the following steps: Let's say you're using 1280x1024 resolution. You have the following function: dxDrawText("$10000000", 990, 200, 1100, 250, tocolor ( 0, 0, 0, 255 ), 1, "pricedown") Take out the positionings from the function: 990, 200, 1100, 250 Divide 1280 with X positions (990, 1100) separately. You'll get 1280/990=1.292929 and 1280/1100=1.16363 Do the same with Y positions, but use 1024 as that is maximum height (aka Y of the screen). You'll get 1024/200=5.12 and 1024/250=4.096 The numbers you got are the scales that will work in every resolution as they work in your resolution (1280x1024). To use those scales, simply divide the clients' resolution with the scale, for example: screenWidth, screenHeight = guiGetScreenSize() dxDrawText("$10000000", screenWidth/1.292929, screenHeight/5.12, screenWidth/1.16363, screenHeight/4.096, tocolor ( 0, 0, 0, 255 ), 1, "pricedown") That's it! There's an extra scaling you can do for text size, which is tricky to work with (due to text getting blurred, ugly and unreadable) but if you're up for it: screenWidth, screenHeight = guiGetScreenSize() scale = (screenWidth/1280)*(screenHeight/1024) -- this will give you a number that will vary around 1, depending on clients' resolution (if resolution is smaller, scale will be below 1, if higher then above 1) dxDrawText("$10000000", screenWidth/1.292929, screenHeight/5.12, screenWidth/1.16363, screenHeight/4.096, tocolor ( 0, 0, 0, 255 ), scale*1, "pricedown") -- as you can see I multiplied the text size (1) with the scale, which means the text will be bigger or smaller (again, depending on the clients' screen resolution) Hope I helped, please provide some feedback for future references!
    1 point
  6. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاته كيف الحال ي شباب ان شاء الله تكونو بأتم الصحة والعافية في موضوع او مشكلة تكررت كثير معي او مع غيري والي هي تقليد الاسم الموضوع اثر علي من ناحيتين الكذب وتخريب السمعة : ( اولاً : عندي اقتراحات نحل هالمشكلة وهي : الاولى اعطاء الأسم للشخص الي له سمعة اكبر او معروف بشكل اكبر الثانية اعطاء الاسم للشخص الي له اكثر من سنين على هالاسم الثالثة مضاربة والحل الي يفوز بالمضاربة ( امزح الثالثة : احس فيها عنصرية شوي بس احس انها افضل طريقة وهي تحدي من الطرفين في البرمجة والي يفوز يربح بالاسم ^.^ بديت احس انه الموضوع مبالغ فيه بس للأسف انا قررت اضع واحط هالموضوع لأن اكثر من 5 اشخاص مقلديين اسمي وانا الاسم هذا من عام 2013 واعرف اشخاص كثيرين لأن ما كان في بالي الا حل واحد واني اغير اسمي بس حسيت له تأثيرات كبيرة مثل فقد السمعة , فقد المعرفة شيء زي كذا علعموم نريد اقتراحات لحل هالمشكلة العويصة الغريبة /: وافضل حل نحل فيه هالمشكلة .. بدون اي تأثيرات او شيء زي كذا الي مع هالموضوع يشارك بالرد او بوضع اللايك على الموضوع عشان نعرف انه هالموضوع له دعم او لا ._.
    1 point
  7. سلام عليكم ورحمة الله انا الحين شغال على يوزر بانل تقدر تقول زي لوحة تحكم وتشتري فيها تزبط كم حاجة لوحتي فيها شراء مابات -تزبيط السيارات - الإعدادات-لوحة خاصة للمتبرعين وصورت لكم كم حاجة خلصتها يا ريت تقيمون اليوزر بانل وتعطون عليها ثمن ^^ في أمان الله
    1 point
  8. Make sure the script has admin rights. "resource.resourceName" in the "Admin" group on "ACL Management" from the default admin panel.
    1 point
  9. https://community.multitheftauto.com/index.php?p=resources&s=details&id=141 That's the GUIEditor resource made by R3mp. This allows you to create in-game GUIs with standard MTA GUI interface or DX. You can create this "dxDrawText" and put it "relative." Where it remains in the position you put on all resolutions.
    1 point
  10. تريقراااات ل74اب9ل+45بلتلب اصبر ضض مدري يمكن الكل يشوفه وريني سيرفر
    1 point
  11. ذذ سوري حط هيك local posi = guiGridListGetItemData(GridList, sel,1) setElementPosition(localPlayer,tonumber(posi[1]),tonumber(posi[2]),tonumber(posi[3]))
    1 point
  12. وليه بدي ازود مشاركاتي . رح اخذ فلوس مثلا ؟
    1 point
  13. My bad, I forget many are hard coded I personally think there is an easier way to disable hard coded scripts, can they not just add them to xml so you can simply do a true/false to choose if they are active? In my opinion would be so much easier...
    1 point
  14. Can't really do that since the login message is hardcoded into MTA itself (aka not in any resource, not even in LUA) That's why I asked what I asked.
    1 point
  15. tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375} } function loob ( ) guiGridListClear ( GridList ) for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end end loob ( ) addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GridList,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) if Text == "" or Text == " " then return end table.insert ( tele, { Text, x, y, z } ) loob () triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end ) ^ جرب
    1 point
  16. local jobTeam = createTeam("Test", 20, 100, 150) local jobMarker = createMarker(7002.419921875, -4831.384765625, 9.60000038147, "cylinder", 2.0, 20, 100, 150, 255) local testingMarker = createMarker(7000.419921875, -4831.384765625, 9.7, "cylinder", 1.0, 20, 100, 150, 255) function takeJob(hitElement, matchingDimension) if isElement(hitElement) and getElementType(hitElement) == "player" and matchingDimension then if getTeamFromName("Test") then local team = getTeamFromName("Test") if team then setPlayerTeam(hitElement, team) end end end end addEventHandler("onMarkerHit", jobMarker, takeJob) function testMarker(hitElement, matchingDimension) if isPedInVehicle(hitElement) then return end if isElement(hitElement) and getElementType(hitElement) == "player" and matchingDimension then if getPlayerTeam(hitElement) and getTeamFromName("Test") then local playerTeam = getPlayerTeam(hitElement) local checkTeam = getTeamFromName("Test") if tostring(playerTeam) == tostring(checkTeam) then outputChatBox("It works!", hitElement, 255, 0, 0, false) end end end end addEventHandler("onMarkerHit", testingMarker, testMarker) This will definitely work. But since I have no idea what you're trying to do, I just did this to help you out with the bugs that are being output to your debugscript. This should fix it. Please post below to what you're trying to do, I read the first post but I didn't quite understand. Let me know so I can help you.
    1 point
  17. if data then ... line 22 if tonumber ( data ) and tonumber ( data ) >= 1 then ... للي يبي يستفيد
    1 point
  18. Hi, I've deleted the comment in question for you. I've also moved your post to the relevant post related to community moderation. Thanks for your suggestions, we'll keep them in mind.
    1 point
  19. That only cancels the outputChatBox, since it is attached to onClientChatMessage event, you will still be logged in.
    1 point
  20. @kieran a tip you should try out is to open Notepad++, press CTRL+LShift+F and then search for the thing you want to find in your whole MTA server directory. For example you don't know where the part which outputs the "Currently playing: Mode - Map" is - you type in the search box "Currently playing: " and hit enter, that'll give you all places where this string is used so that you can find and edit the stuff so much faster and easier.
    1 point
  21. @pa3ck the link you gave him, does that cancel the login event or it just doesn't show the chatbox message? I was looking for a way to make the login message a bit more pretty sometime ago :')
    1 point
  22. تمت إزالة الرد السابق , يرجي منكم عدم إعطاء صاحب الموضوع اي فنكشنات تتعلق في مايريد , لأنه قام بإنشاء هذا الموضوع من اجل الحصول علي السكربت جاهز وليس الفنكشنات
    1 point
  23. عن القيمود يجري تطويرها من قبل L, Ciber, 1B0Y neves768 مفتوح المصدر وبإمكان الجميع المشاركة والتعديل المميزات والحصريات Powerful anti-cheat System of conquest Survivor Personal Diary DayZ administrative panel DayZMOD Inventory (ArmA 2) Official GM (of the same team of Marwin and L) Clothing and skins system (you can choose from the settings) MySQL Rescue System (can activate in configs) New system of zombies (can activate in configs) والمزيد Download النسخة الخالية من الاخطاء والمستقرة https://github.com/ciber96/mtadayz/archive/v0.9.9a.zip
    1 point
  24. الرابط فيه خطأ للتصحيح : http://masters-host.ga/
    1 point
  25. Don't forget that the search function is fully functional: As for the vote/help manager, you never mentioned what you want to change, the outputChatBox messages?
    1 point
  26. Just do it on client-side. When the player quits, it is automatically destroyed, because of the client-side.. setTimer (function() -- creating an infinite setTimer. setElementData (localPlayer, 'points', tonumber(getElementData(localPlayer, points)) + 1) -- plus 1 to the player's points end, 10000, 0) -- and that's it!
    1 point
  27. The problem is solved. The process was hanging because of the modified gta_sa.exe
    1 point
  28. NEVER insert your server ip in the <serverip> field, if you don't know what you're doing. Instead, keep the default 'auto'.
    1 point
  29. i know SAAW is doing a great job on bringing the closest to real life War.You should defenitly try that out
    1 point
  30. غبت وغاب الابداع, ورجعت تعدل الأوضاع
    1 point
  31. 1 point
  32. المتغيرات عبارة عن اسم وقيمة قد تكون قيمتها رقم او نص او دالة الخ...
    1 point
  33. @Pirulax we didn't make whole functions thus there's no need for adding the event handler. And I think everybody who's reading this topic would know that in order to draw something on the screen they'd need to use onClientRender.
    1 point
  34. @Adiidas once you started asking a question in full english and appropiate English board, please don't switch to talking Portuguese in the midst. One more portuguese reply and it would've been moved, if you want to ask a question (mainly) in Portuguese then start topic in that language's board please
    1 point
  35. I once managed to remove them through cancelEvent on onClientChatMessage (client-side) by checking for prefix - eg. addEventHandler("onClientChatMessage", root, function(message) if message:sub(1, 6) == "login:" then cancelEvent() end end )
    1 point
  36. The rule is fine, but the fact is, no one can protect their scripts. MTA has clearly not looked at this common issue very well. Most of the scripts that have been stolen are stolen with attacks and hacking through illegal measures. It's not something anyone can just "protect" as you say. Even if they all were compiled, they'd still be able to get a copy of the files from the source with hacking. And yes, people do hack through layers of firewall in order to get codes. Your compiling measures and encryption is only useful for client-side files. Valhalla Gaming code was stolen, or actually leaked, by a former MTA developer. So why should we trust MTA on all these things. Nobody wanted the code to be stolen, but it still was even though the owners tried to go against it. It might be late now, yes, but you could just think about the whole idea instead of just telling us to keep them safe. Even your networking module can be found from some developer's computer for sure. Had to come straight with this because I'm annoyed.
    1 point
×
×
  • Create New...