#Doctor Posted February 20, 2018 Share Posted February 20, 2018 ابي اضيف خاصية مسح شات و خاصية منع السب tag.lua local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() 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) meta.xml <meta> <script src="tag.lua" type="server" /> </meta> Link to comment
Rakan# Posted February 21, 2018 Share Posted February 21, 2018 موجودات بكل مكان قبل لاتحط موضوع ابحث لو سمحت . لو انك بحثت كان لقيت Link to comment
#Major . Posted February 21, 2018 Share Posted February 21, 2018 15 hours ago, mohsin said: ابي اضيف خاصية مسح شات و خاصية منع السب tag.lua local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() 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) meta.xml <meta> <script src="tag.lua" type="server" /> </meta> بالنسبة للطلب الاول موجود المود بكل مكان هذا الطلب الثاني 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) --- غير مجرب الكود غير مجرب جربة ورد لي Link to comment
Ram, Posted February 24, 2018 Share Posted February 24, 2018 بالنسبة لكود مسح الشات , timer = {} addCommandHandler("77", function (x) if hasObjectPermissionTo(x,"command.kick",true) then if isTimer(timer[x]) then outputChatBox("* عليك الانتظار 8 ثواني .",x,255,0,0) return end for i=1,15 do outputChatBox(" ") end outputChatBox("* بمسح الشات [ "..getPlayerName(x).." ] قام الادمن ",Root,242,242,242, true) timer[x] = setTimer(function () end,8000,1) else outputChatBox("* لاتملك صلاحيات لهذا",x,255,0,0) end end ) Link to comment
#Doctor Posted March 1, 2018 Author Share Posted March 1, 2018 On 2/21/2018 at 11:20, *RayaN-Alharbi. said: بالنسبة للطلب الاول موجود المود بكل مكان هذا الطلب الثاني 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) --- غير مجرب الكود غير مجرب جربة ورد لي شكراا أخي الكود كدبوض حبيبي Link to comment
#Major . Posted March 2, 2018 Share Posted March 2, 2018 On 3/1/2018 at 11:16, mohsin said: شكراا أخي الكود كدبوض حبيبي العفو حبيبي Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now