mohsin

ابي مساعدة في مود تاجات

Recommended Posts

ابي اضيف خاصية مسح شات و خاصية منع السب 

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>

 

Share this post


Link to post

موجودات بكل مكان قبل لاتحط موضوع ابحث لو سمحت .

لو انك بحثت كان لقيت 

Share this post


Link to post
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)
--- غير مجرب

الكود غير مجرب جربة ورد لي

Share this post


Link to post

بالنسبة لكود مسح الشات ,
 

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
)

 

Share this post


Link to post
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)
--- غير مجرب

الكود غير مجرب جربة ورد لي

شكراا أخي الكود كدبوض حبيبي

Share this post


Link to post
On 3/1/2018 at 11:16, mohsin said:

شكراا أخي الكود كدبوض حبيبي

العفو حبيبي

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.