Jump to content

#Major .

Members
  • Posts

    861
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by #Major .

  1. بالنسبة للطلب الاول موجود المود بكل مكان هذا الطلب الثاني local root = getRootElement() BanedWords = {"سب","سب","سب"} --Set as many as you want! function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() for i,v in ipairs(BanedWords) do if string.find(text, v:lower()) then outputChatBox("كلمات ممنوعه", player, 255, 0, 0, true) return end end if isObjectInACLGroup("user." .. account, aclGetGroup("Admin.F")) then outputChatBox("#ffffffx[#000000 ادمن مخالف #ffffff]x" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DeputyControl")) then outputChatBox("#FFFFFF✱#404146【 #1C50C7Derby #820A0AControl #404146】#FFFFFF✱" .. name .. ":#820A0A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Black")) then outputChatBox("#ff0033彡#00ffffDieputy.B#FFFFFFla#00ffffck #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then outputChatBox("#ff0033✱#7A7A7A【 #0B93D7MaNaGeRs#7A7A7A 】#ff0033✱#D2D5D7" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then outputChatBox("#ffcc00╔#00ccff║#ffcc00╗ #FF0000ManGeR#ffcc00╔#00ccff║#ffcc00╗#00ccff" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Managers")) then outputChatBox("#ff0033彡 #996600Vote Managers #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager")) then outputChatBox("#ff0033彡 #996633Vote Manager #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then outputChatBox("#ff0033彡 #99ff00Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager-Acl")) then outputChatBox("#ff0033彡 #ccff33Vote Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SPECIALPRINCE")) then outputChatBox("#7A7A7A彡 ~ |♥#00ccff SPECIAL PRINCE #7A7A7A♫| ~ 彡 " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINSENIOR")) then outputChatBox("#2874A6✤#ABB2B9⌠ ◖ #F07D11SENIOR ADMIN #ABB2B9◗ ⌡#2874A6✤ : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PRINCEADMIN")) then outputChatBox("#FF0000 #000000 ✻ ⌠#EAF113 PRINCE ADMIN #000000 ⌡ ✻ #000000" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINWZARH")) then outputChatBox("#E77F7F✤#FFFFFF⌠ ◖ #58D68DADMIN WZARH #FFFFFF◗ ⌡#E77F7F✤ : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KINGADMIN")) then outputChatBox("#1F6B66✤#FFFFFF⌠ ◖ #D98880KING ADMIN #FFFFFF◗ ⌡#1F6B66✤ :" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminGeneral")) then outputChatBox("#34495E✤#FFFFFF⌠ ◖ #EFE30AADMIN GENERAL #FFFFFF◗ ⌡#34495E✤ : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPrime")) then outputChatBox("#E31B1B✤#AEB6BF⌠ ◖ #FDFEFEADMIN PRIME #AEB6BF◗ ⌡#E31B1B✤ : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Server")) then outputChatBox("#ff0033彡 #336666Admin Server #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then outputChatBox("#ff0033彡 #990033Professional Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#ff0033彡 #00ff00Head Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then outputChatBox("#EE7F33彡#A4F1B0⌠•#239B56 ADMIN #A4F1B0•⌡#EE7F33彡 :" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#ff0033彡 #999900SuperModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#ff0033彡 #ff33ffModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#ff0033彡 #663333Police #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VotePolice")) then outputChatBox("#6D1265彡#FFFFFF⌠• #E2DCE1VOTE POLICE #FFFFFF•⌡#6D1265彡 : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#F22323彡#AEB6BF⌠• #FDFEFEV.I.P #AEB6BF•⌡#F22323彡 : " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Time")) then outputChatBox("#EADBDB彡#FAFAFA⌠• #F23232KING OF TIME #FAFAFA•⌡#EADBDB彡 :" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) --- غير مجرب الكود غير مجرب جربة ورد لي
  2. في بداياتي كان فيه شخص يساعدني دايم الي هو @iMr.WiFi..! بعدين اختفا ومعد صرت الاقيه وصرت اتعلم بنفسي وبعد فتره صرت ادخل المنتدى واتعلم من قسم الشروحات وتعلمت وكنت اطلب اكواد (تعديل) في قسم البرمجة وبعد م تعلمت الغة شفت شرح ل برستيج للsql وتعلمت عليه وبفض الله ثم فضلة قدرت افهم الsql الي معقدني بحياتي
  3. بأذن الله * محلاضة تم تحديث المود واضافة زر تعديل القوانين
  4. * السلام عليكم ورحمة الله وبركاتة اليوم جيتكم بمود جديد واتوقع ماهو منشور من قبل ( م عمري شفتة بسيرفر )ء - مود القوانين مع مزايا 1 - امكانية اضافه او ازالة او تعديل القوانين من داخل السيرفر من دون الحاجة إلى فتح المود 2 - ازرار اضافة او ازالة او تعديل القوانين، تفتح فقط لمن سريالة داخل ملف ( settings ) 3 - خط خاص بالمود والقوانين 4 - اضافة كولمن يضهر فيه من قام بأضافة القانون 4 - لـتعديل الزر الخاص بـ فتح الوحة + السريالات، اتجةة لملف ( settings ) - الصور - هنا الواجةة الخاصة بالمود - هنا لوحة اضافة القوانين الجديدة - هنا الواجةة مره اخرى بعد اضافة قانون جديد - هنا لوحة تعديل القوانين - هنا الواجةة مرة اخرى بعد تعديل القانون - هنا زر حذف القانون - هنا الواجةة مرى اخرى بعد حذف القانون * رابط التحميل : https://community.multitheftauto.com/index.php?p=resources&s=details&id=15253 - وبالختام احب اشكر البطل الي شجعني وعلمني البرمجه @iMr.WiFi..! * ملاحظة هذا اول مود لي انشرة في المنتدى - الاهدائات * جميع اعضاء منتدى Mtasa
  5. روح للاسل من الاستضافه وحط عند رتبه admin resource.Admin
  6. تحط الامر حق التاج مثلا bindKey("t", "down", "chatbox", "[KFO]")
  7. م زبط addEventHandler("onClientGUIChanged",root, function () if ( source == NAME ) then local text = string.upper(guiGetText(NAME)) if ( text == "" ) then else guiGridListClear(Grid) for i, v in ipairs(getElementsByType"player") do if string.find(string.lower(string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", "")), string.lower(guiGetText(NAME))) then guiGridListSetItemText(Grid, guiGridListAddRow(Grid), 1, tostring(i), false, false) guiGridListSetItemText(Grid, guiGridListAddRow(Grid), 2, getPlayerName(v), false, false) guiSetProperty(NAME, "NormalTextColour", "FF0048FF") else guiSetProperty(NAME, "NormalTextColour", "FFFF0000") end end end end end ) + انت مفهمت قصدي انا ابيه يبحث من داخل قاعدة البيانات مو بين الاعبين المتواجدين
  8. function players ( ) guiGridListClear ( Grid ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Row = guiGridListAddRow ( Grid) guiGridListSetItemText ( Grid, Row, 1, getPlayerName ( v ), false, false ) end end addEventHandler("onClientGUIChanged",root, function () if ( source == NAME ) then local text = string.upper(guiGetText(NAME)) if ( text == "" ) then else guiGridListClear(Grid) for i,v in ipairs(getElementsByType("player")) do local name = string.upper(getPlayerName(v)) if string.find(name,text) then playSoundFrontEnd(3) local row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,row,1,getPlayerName(v),false,false) guiGridListSetItemColor(Grid,row,1,255,100,100) guiSetProperty(NAME, "NormalTextColour", "FF0048FF") else guiSetProperty(NAME, "NormalTextColour", "FFFF0000") end end end end end ) 1- يجيب اللاعبين الموجودين فقط 2- لما تبحث عن اسم يجيبه لحاله بدون الكولمنات الثانيه
  9. هذاا الكلانت حق الوحة addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() acc2 = guiCreateWindow((screenW - 611) / 2, (screenH - 434) / 2, 611, 434, "Account Panel Admin", false) guiWindowSetSizable(acc2, false) guiSetVisible(acc2, false) bh = guiCreateEdit(46, 24, 555, 20, "", false, acc2) image = guiCreateStaticImage(10, 24, 27, 20, "aliradoy.png", false, acc2) Grid = guiCreateGridList(9, 55, 592, 324, false, acc2) guiGridListAddColumn(Grid, "#Nick", 0.3) guiGridListAddColumn(Grid, "Username", 0.3) guiGridListAddColumn(Grid, "Password", 0.3) colmse = guiGridListAddColumn(Grid, "Sreial", 0.9) Close = guiCreateButton(256, 389, 107, 35, "Close", false, acc2) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FFFE0018") Remove = guiCreateButton(496, 389, 107, 335, "Remove Account", false, acc2) guiSetFont(Remove, "default-bold-small") guiSetProperty(Remove, "NormalTextColour", "FFFE0018") Copy = guiCreateButton(136, 389, 107, 135, "Copy my Account", false, acc2) guiSetFont(Copy, "default-bold-small") guiSetProperty(Copy, "NormalTextColour", "FFFE0018") Refresh = guiCreateButton(16, 389, 107, 135, "Refresh", false, acc2) guiSetFont(Refresh, "default-bold-small") guiSetProperty(Refresh, "NormalTextColour", "FFFE0018") ChangePass = guiCreateButton(380, 389, 107, 135, "Change Pass Account", false, acc2) guiSetFont(ChangePass, "default-bold-small") guiSetProperty(ChangePass, "NormalTextColour", "FFFE0018") end ) addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() accp = guiCreateWindow((screenW - 435) / 2, (screenH - 149) / 2, 435, 149, "Change Pass Account", false) guiWindowSetSizable(accp, false) guiSetVisible(accp, false) label_pass = guiCreateLabel(-47, 65, 172, 20, "Write a Pass New :", false, accp) guiSetFont(label_pass, "default-bold-small") guiLabelSetColor(label_pass, 2, 31, 251) guiLabelSetHorizontalAlign(label_pass, "right", false) passedit = guiCreateEdit(130, 63, 236, 22, "", false, accp) CloseP = guiCreateButton(399, 119, 26, 20, "X", false, accp) guiSetFont(CloseP, "default-bold-small") guiSetProperty(CloseP, "NormalTextColour", "FFFE0000") Change = guiCreateButton(164, 119, 107, 20, "Change Pass", false, accp) guiSetFont(Change, "default-bold-small") guiSetProperty(Change, "NormalTextColour", "FF04F804") end) addCommandHandler("acc2", function() triggerServerEvent("CheckACL2",getLocalPlayer()) triggerServerEvent("refresh3",getLocalPlayer()) end ) addEvent("showpanel2", true) addEventHandler("showpanel2",root, function() if ( guiGetVisible(acc2) == false ) then guiSetVisible(acc2, true) showCursor(true) triggerServerEvent("refresh3",getLocalPlayer()) else guiSetVisible(acc2, false) showCursor(false) end end ) addEventHandler ("onClientGUIClick", root, function() local sel = guiGridListGetSelectedItem(Grid) local Username = guiGridListGetItemText(Grid,sel,2) local Password = guiGridListGetItemText(Grid,sel,3) if ( source == Remove ) then if ( sel ~= -1 ) then triggerServerEvent("onRemoveAccount",localPlayer,Username) guiSetVisible(acc2, false) showCursor(false) else outputChatBox("* Please Select Account To Remove",255,0,0,true) end elseif ( source == Copy ) then if ( sel ~= -1 ) then setClipboard("login "..Username.." "..Password.."") outputChatBox("* The Info Was Copy",255,255,0,0,true) else outputChatBox("* Please Select a Account To Copy Info",255,0,0,true) end elseif ( source == ChangePass ) then if ( sel ~= -1 ) then guiSetVisible(acc2, false) guiSetVisible(accp, true) setElementData(resourceRoot,"NameOfAccount",Username) else outputChatBox("* Please Select a Account To Change Pass",255,0,0,true) end end end ) addEventHandler ("onClientGUIClick", root, function() if (source == Close) then outputChatBox("#aa0000[#d0d0d0 Login Panel System #aa0000] #d0d0d0By #aa0000[#d0d0d0 *Rayan-Alharbi#aa0000 ]",0,0,0,true) guiSetVisible(acc2, false) showCursor(false) guiSetEnabled(Close, false) setTimer(function() guiSetEnabled(Close, true) end,3000,1) elseif ( source == Refresh ) then guiGridListClear(Grid) triggerServerEvent("refresh3",getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",root,function () if ( source == CloseP ) then guiSetVisible(accp, false) showCursor(false) elseif ( source == Change ) then local text = guiGetText(passedit) if ( text ~= nil and text ~= "" and text ~= " " ) then triggerServerEvent("onChangePass",localPlayer,text) guiSetVisible(accp, false) showCursor(false) else outputChatBox("* Write a Password To Change",255,0,0,true) end end end) addEvent ( "refresh1" , true ) addEventHandler ( "refresh1" , root , function ( sql ) guiGridListClear ( Grid ) for k,v in ipairs ( sql ) do local row = guiGridListAddRow ( Grid ) ; guiGridListSetItemText ( Grid , row , 1 , v['PlayerName'] , false , false ) ; guiGridListSetItemText ( Grid , row , 2 , v['Username'] , false , false ) ; guiGridListSetItemText ( Grid , row , 3 , v['Password'] , false , false ) ; guiGridListSetItemText ( Grid , row , 4 , v['PlayerSerial'] , false , false ) ; end end ) ;
  10. انا م اعرفت احاول اصلن <> ودورت اكثر من كود كلها تكون بحث عن لاعبين بالوب
  11. جرب حط بدال nn > tt triggerServerEvent( "muted", localPlayer, tt )
  12. السلام عليكم انا مسوي لوحة قريد ليست ورابطها ب sql ومسوي ايدت بوكس للبحث م عرفت شلون ابرمج الايدت بوكس انه يبحث بين الاعبين مع العلم ان القريد ليست منربط ب قاعدة بيانات وفيها 4 كولمنات ابيه يبحث عن طريق الاسم ؟
  13. ليه م يدمج اكواده مع لوحة الادمن وخلاص؟
  14. اذا تبيه يطلع في لوحة قريد ليست لازم تربط لوحة الادمن ب قاعدة بيانات اذا م تبيه تبي تشوف الوق من الاستضافه استخدم file
  15. شكرا فهمت وانا كنت اشوف اكواد ل مستر جراند واحاول اتعلم منها ووصلت لنقطه هذي وابتلشت
  16. اهااا فهمتك يعني لو ارسل تراجر كذا triggerClientEvent('test',root,tttt) ينفع احط بدال الtttt ايشي function(tttt2) صح؟
  17. انا م اقصد التراجر او اسم الفنكشن اقصد كلمه sql for k,v in ipairs ( sql ) do الي سوا عليها لوب من وين جابها ؟ ماني شايف لها جدول او متغير
×
×
  • Create New...