Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/06/17 in Posts

  1. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
    2 points
  2. function login_panel() local screenW, screenH = guiGetScreenSize() main_win = DGS:dgsDxCreateWindow((screenW - 616) / 2, (screenH - 402) / 2, 616, 402, "", false) DGS:dgsDxWindowSetSizable(main_win, false) userlb = DGS:dgsDxCreateLabel(6, 18, 145, 32, "USERNAME:", false, main_win) guiLabelSetHorizontalAlign(userlb, "center", false) guiLabelSetVerticalAlign(userlb, "center") passlb = DGS:dgsDxCreateLabel(6, 50, 145, 32, "PASSWORD", false, main_win) guiLabelSetHorizontalAlign(passlb, "center", false) guiLabelSetVerticalAlign(passlb, "center") usered = DGS:dgsDxCreateEdit(151, 18, 167, 32, "", false, main_win) passed = DGS:dgsDxCreateEdit(151, 50, 167, 32, "", false, main_win) statuslb = DGS:dgsDxCreateLabel(49, 96, 269, 99, "", false, main_win) loginbtn = DGS:dgsDxCreateButton(1, 336, 132, 40, "LOGIN", false, main_win) regbtn = DGS:dgsDxCreateButton(133, 336, 132, 40, "REGISTER", false, main_win) orlb = DGS:dgsDxCreateLabel(270, 344, 80, 32, "--OR LOGIN--", false, main_win) guiLabelSetHorizontalAlign(orlb, "center", false) guiLabelSetVerticalAlign(orlb, "center") ipbbtn = DGS:dgsDxCreateButton(380, 336, 200, 40, "WITH FORUM ACCOUNT", false, main_win) players_on = DGS:dgsDxCreateGridList(360, 17, 223, 188, false, main_win) update_notes = DGS:dgsDxCreateLabel(360, 97, 223, 155, "", false, main_win) DGS:dgsSetSize(statuslb, 6) showCursor(true) end -- Login GUI click events addEventHandler("onClientDgsDxMouseClick",root,function() if source == loginbtn then DGS:dgsDxGUISetText(statuslb, "Attempting to login... please wait") fadeCamera(false, 1) triggerServerEvent("attemptClientLogin", localPlayer, DGS:dgsDxGUIGetText(usered), DGS:dgsDxGUIGetText(passed)) -- On registration elseif source == ipbbtn then triggerServerEvent("onIPB", localPlayer, DGS:dgsDxGUIGetText(usered), DGS:dgsDxGUIGetText(passed)) elseif source == regbtn then local password = DGS:dgsDxGUIGetText(passed) local username = DGS:dgsDxGUIGetText(usered) if (#password == 0) then DGS:dgsDxGUISetText(statuslb, "Enter a Password") elseif (#password < 6 or #password > 30) then DGS:dgsDxGUISetText(statuslb, "Password Must be\n6-30 Characters Long") DGS:dgsDxGUISetProperty(statuslb,"#ff0000",tocolor(255, 0, 0)) elseif (string.find(password, "%s")) then DGS:dgsDxGUISetText(statuslb, "Your password cannot\n contain a space!") DGS:dgsDxGUISetProperty(statuslb,"#ff0000",tocolor(255, 0, 0)) elseif (password == username) then DGS:dgsDxGUISetText(statuslb,"Your username and \npassword must be different!") DGS:dgsDxGUISetProperty(statuslb,"#ffff00",tocolor(255, 255, 0)) else triggerServerEvent("onClientAttemptRegistration", localPlayer, DGS:dgsDxGUIGetText(usered), DGS:dgsDxGUIGetText(passed)) end end end) DGS:dgsDxGUISetText works fine but when I add DGS:dgsDxGUISetProperty it wont change the label color... any help with that?
    2 points
  3. بسم الله الرحمن الرحيم , سلام عليكم ورحمة الله وبركاته /: كيفكم شباب ان شاء الله تكونو بأتم الصحة والعافية : ) اليوم اقدم لكم مود مفيد جداً , ومطور من الاصدار الاول صور للمود : الباقي تشوفونه داخل المود تنبيه : المود مو مشفر بالكامل شفرت فقط اللوحة والحقوق , عشان الي حاب يتعلم من الاكواد التحميل : ============================================= https://up.top4top.net/downloadf-503vuqr01-zip.html ============================================= مميزات المود : 1- تقدر تعرف معلومات اللاعب من الجريد ليست دبل كلك على اللاعب المراد 2- تقدر تضيف وتحذف رتبة من عند اللاعب 3- تقدر تعدل على رتب الحساب من الاسم 4- المود يدعم العربي والانقليزي 5- اذا اللاعب ماعنده حساب راح يجيك رو في القروبات " - " 6- تقدر تتحكم بالرتبة الي تفتح اللوحة من ملف Server.lua 7- تقدر تتحكم في الزر من ملف Client.lua 8- الآن تستطيع ان تحدد السريال او بأسم الحساب او برتبته , ماذا يستطيع ان يرى من قروبات مثال : Roles = { -- أيش الرتب المسموحة الي يشوفها ؟ { "root","Admin","Moderator" }--, -- هذا يعني للجميع root --{ "D305ABA4B66524E3CD26D8432D38A333","Admin","Moderator" }, -- سريال --{ "Wifi","Admin","Moderator" }, -- باسم الرتبة --{ "Mohmmad","Admin","Moderator" } -- باسم الحساب } لا تخاف ( root ) : مايخلي اي واحد يفتح اللوحة,بل بالشخص الي فتح اللوحة وش بيقدر يشوف اذا كان سرياله مو موجود او اسم حسابه او الرتبة الي معه تقدر بسريال : وتحط جمبه الرتب الي تبيها تظهر او بأسم الرتبة : وتحط الرتب الي تبيها تظهر جنبه او بأسم الحساب تكتب اسم الحساب , وبعدها تكتب الرتب الي تبيه يطالعها عشان تعدل على ذا الشيء روح لملف ( Server.lua ) وعدل عليهم تنبيه مهم جداً : لازم تضيف المود في قروب الادمن بهذا الشكل : resource.1xAclByWifi الاهدائات : جبل من الناس لايحصون وانت منهم وسلام خير الختام : )
    1 point
  4. الحمد لله رب العالمين والصلاة والسلام على أشرف الأنبياء والمرسلين ، نبينا محمد وعلى آصحآبه جمعين ، كيفكم ان شاء الله بخير ,؟ كا العاده نجيب لكم سكربت جميل اسم السكربت : : System AdminEx السكربت وش هو .. ؟ السكربت عباره عن انك تصك واحد مخالفه بدون ماتروح وتتعب نفسك من الاسل تكتب اسم حسابه بـ مربع البحث ثمن تحدد عليه ثمن تحدد ايام المخالف بشرط انها لاتزيد عن 4 ايام ثمن تكتب سبب المخالف ثمن تعطيه مخالفه و بعد مايخلص عدد الايام المحدد تنفك تلقائي مثل : انا صكيت واحد الساعه 1 الظهر صكيته يوم مخالف راح بكرا الساعه 1 الظهر راح تنفك تلقائي هذا مهم لـ سيرفرات الهجوله وغيرها من يوجد لديهم نظام مخالفه مميزات السكربت : 1- اعطاء المخالفه بـ سهوله و فكه تلقائي بعد الفتره المحدده 2- لـ يمكن اعطاء مخالفه اكثر ممن 4 ايام ( الي يبي المود اكثر من 4 يتواصل معي سكايبي ) 3- يوجد مربع بحث لـ حسابات السيرفر 4- حمايه لـ زر اعطاء مخالفه عندما يتم اعطاء احد مخالفه سيتم اقفاله لمدة ( 10 ثواني ) 5- جميع الاوامر موجوده في ملف ( Command.lua ) كود: كود: طريقة السكربت : لـ فتح الوحه عليك بـ كتابة الامر Mn لـ تغير الكلمه من ملف ( Command.lua ) 2- بعد فتح الوحه يوجد قريد ليست يوجد فيه حساب الاعبين و فوقه مربع بحث و يوجد مربعين اخرين واحد لـ سبب المخالفه و الاخر لـ ايام المخالفه صوره من لوحة السكربت : واخير رابط التحميل رابط التحميل من هناhttp://mtaarabs.com/vb/showthread.php?t=1518 طبعآ السكربت مشفر لـ حفظ الحقوق ( جميع الحقوق محفوظه لـ مجتمع العرب Mta ) مهم : اي مشكله توجهك عليك بـ ارسال رساله لي على الخاص او عبر السكايبي : MnHmAr مهم : يرجى عدم عمل رستارت للمود لكي لـ يتم اعادة وقت المخالفه + سيتم حله في الاصدآر القادم ان شاء الله الأهداء الى : برستيج MoDeR2014 Abdul KariM سعد الغامدي Mr.SAUD ibrahim ‏Master Naif Alharbi N3xT Mr.Tn6el رونالدو Mr.CoR MR.NaiF-MTA بويكآ xMoHaNaD iMr.Ahmed + لكل مجتمع العرب
    1 point
  5. الأن سكربت fpsRP للمواقع , قم بعرض محتوى سيرفرك عبر موقعك مثال حي http://fpsserver.com/fpsRP السيرفر : 164.132.106.152:22479 يمكنك شراءه الأن بسعر رخيص 10$ مدى الحياة , والتركيب مجاني. قم بأضافتي عبر سكايب : fpsserver المميزات : الأحصائيات العامة , أغنى الشخصيات , صفحة لكل شخصية يوجد بها معلومات عنه , دليل التليفونات لكل شخصية , عرض كل شخصيات , عرض كل المركبات الدي يمكنك شرائها داخل سيرفر واسعارها.
    1 point
  6. The default value is 1, so it doesn't need to be in the config unless you want to disable it. You can check the setting with getServerConfigSetting("threadnet")
    1 point
  7. تحقق ان اللاعب داخل سيارة وجيب احداثيات السيارة وسوي النظر للسيارة مب للوكال بلاير ped = createPed( 0, 2485, -1667, 13.34375) function render () local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then -- كمل الكود الناقص setPedLookAt ( ped, x, y, z, _, _, vehicle ) else local x,y,z = getElementPosition ( localPlayer ) -- كمل الكود الناقص end end addEventHandler ( "onClientRender", root, render )
    1 point
  8. انا افيد الجميع وليس الشخص نفسه +_+ تذكر ان المنتدى للجميع
    1 point
  9. صلح الخطأ بنفسك .. واتمنى ماحد يساعده الا لو صلح الخطأ بنفسه !! كفاية عنده كود جاهز ومايصلحه
    1 point
  10. بتلاقي Dimension="0" غير الصفر للعالم الوهمي الي تبيه
    1 point
  11. بسم الله الرحمن الرحيم , سلام عليكم ورحمة الله وبركاته : أما بعد اقدم لكم وظيفة جميلة ومفيدة بنفس الوقت : getAccountsFromData | Server-Side Only | في جهة السيرفر فقط | Syntax : table getAccountsFromData( string Data ) Data : اسم الداتا المراد جلب الاكونتات الذين لديهم هذه الداتا Source Code : function getAccountsFormData ( Data ) assert(type(Data) == "string","getAccountsFormData Bad Argument 1@ [ Expected 'DataName' in string ] ") Accounts = { } for Index,Account in ipairs (getAccounts( )) do if getAccountData(Account,Data) then table.insert(Accounts,Account) end end return Accounts; end Example : المثال هذا راح يرجع اللاعبين المتواجدين ولديهم هذه الداتا : --- # Source Code function getAccountsFormData ( Data ) assert(type(Data) == "string","getAccountsFormData Bad Argument 1@ [ Expected 'DataName' in string ] ") Accounts = { } for Index,Account in ipairs (getAccounts( )) do if getAccountData(Account,Data) then table.insert(Accounts,Account) end end return Accounts; end -- # Example addCommandHandler("GetAccounts", function ( player, CommandName, DataName ) local accounts = getAccountsFromData( DataName ) -- نجلب الحسابات الي عندهم الداتا for i,v in ipairs( accounts ) do -- نسوي لوب للاكونتات local aPlayerAccount = getAccountPlayer( v ) and getPlayerName( getAccountPlayer( v ) )..",Online" or getAccountName(v)..",Offline"; --[[ اذا كان في احد بالحساب يرجعه بأسم اللاعب ثم فاصلة iMr.Wifi,Online واذا ما كان موجود يرجعه بأسم الحساب ثم فاصلة Wifi,Offline ويستمر على باقي اللاعبين ]] outputChatBox(aPlayerAccount,player) -- يظهر بالشات ^^ end end ) وسلام خير الختام <3
    1 point
  12. guiCreateGridList guiGridListAddColumn guiGridListClear guiCreateEdit "onClientGUIClick" -- event guiGetText getElementsByType("player") -- loop -- weapon loop getPlayerWeapon getPedWeapon getPedAmmoInClip getPedTotalAmmo getWeaponAmmo triggerServerEvent setWeaponAmmo takeWeapon giveWeapon -- صراحة دماغي لفت للحين اذا فيه شي ناقص افيدوه https://wiki.multitheftauto.com/wiki/Weapons
    1 point
  13. مافهمت يعني ترسل الذخيرة للاعب ؟
    1 point
  14. على حسب .. انت كيف تبي ترسل ؟ عن طريق كتابة اسم اللاعب و السلاح و الذخيرة ولا اختيار الاعب و السلاح وكتابة الذخيرة ولا وش بالضبط وضح على حسب .. انت كيف تبي ترسل ؟ عن طريق كتابة اسم اللاعب و السلاح و الذخيرة ولا اختيار الاعب و السلاح وكتابة الذخيرة ولا وش بالضبط وضح
    1 point
  15. Yeah of course, because the sound is set to loop. Replace with this one. -- This sound will play once local sound = playSound("Night.mp3", false)
    1 point
  16. أخوي , أتمنى إذا ودك تسوي موضوع وتعطي ناس الأكواد بالخاص , لا تطرح وشكراً
    1 point
  17. thank you guys Now works perfectly
    1 point
  18. وياك آمين ..
    1 point
  19. وعليكم السلام "onColShapeHit" setPlayerWantedLevel
    1 point
  20. Так, настраиваюсь на волну. Получаю сигнал, задаю установку на исправление ошибки. Вижу скрипт. Там что-то темное. Какая-то плохая энергия. Вижу какой-то образ. Нечетко. Он что-то пытается мне сказать. Вам имя Александр ничего не говорит? Что-то связанное с вашим прошлым, и возможно будущим.
    1 point
  21. This is my server. The gui is made by dgs. ( I am bad in design sry)
    1 point
  22. Hi, For a few days on the server side, I have a problem changing \n to spaces. For example, the output from the outputChatBox("Line 1\nLine 2\nLine3") on the server side returns: Line 1 Line 2 Line 3 On the client side already correctly: Line 1 Line 2 Line 3 Server version: 1.5.4-9.11305.0 (MTA:SA Server v1.5.4-release-11305) Client version: Multi Theft Auto v1.5.4-release-11324 Thank you for your help and sorry for the weak english
    1 point
  23. I hope this is what the OP is looking for function getTopScores() local scores = {} for plr, v in pairs(exampleTable) do table.insert(scores, {name = getPlayerName(plr), kills = v.kills} end table.sort(scores, function(a, b) return a.kill > b.kill end) return scores end local scores = getTopScores() outputChatBox("Top scorer is "..scores[1].name.." with "..scores[1].kills.." kills!") It creates a list with the names and kills of each player in your table then sorts it by the kills. Then you can output the first one in the list or all of them put them in a grid list or something. To avoid that you should just create a new table. Hope this helps everyone
    1 point
  24. تقدر تعمل سيرفر مجاني وكمان على مدار الساعة من خلال ابقاء كمبيوترك شغال دايما ويكون مشبوك على سرعة عالية من النت اي استفسار او مساعدة انا جاهز
    1 point
  25. Script inspired by Mabakos SA-MP 0.2 medit script Made by OffRoader23 Pic: I created an object 5002 and moved it up into the sky, it attaches an arrow so you know what your editing. In-Game Map Editor - Commands /mcreate - Creates object with specified model number /msave - Saves object into script, and gives you that objects script ID /mdestroy - Destroy currently selected object /msel - Select object saved into script by objects script ID /mclear - Clear all objects made with the map editor /ox - Move object on X axis /oy - Move object on Y axis /oz - Move object on Z axis /rx - Rotate object on X axis /ry - Rotate object on Y axis /rz - Rotate object on Z axis /savemap - Save all current items into script folder with specified name /loadmap - Load map from script folder with specified name /saveobj - Saves currently selected object to objects.txt with description and creator Download It saves the maps into the offedit folder on your server as mapname.o23 and they just open up with notepad, and have the lua code inside with the object ID, and location. You can use the deLux map converter if you want to turn them into a .map file, or just copy/paste them into your lua script on resource start to add the objects into your server. To clear out /mclear usually works, if you use /saveobj it doesn't save the object to the table so /mclear will not clear it. Then you will just need to restart the offedit script. I'm working now on an admin only version where you can give people guest building passes and without that only admins can build it. If anyone wants that one I'll release it once its completed. Any other questions just post in here and I will answer them. Please report any bugs here also, or on the resource download page.
    1 point
×
×
  • Create New...