Jump to content

طلب صغير


saef

Recommended Posts

Posted

السلام عليكم ورحة اله و بركاته اليوم عندنا طلب صغير بيس ابي التاج الخصا م يتكرر بي الشات

هذا التاج الخاص كلنت و سيرفر

كلنت

  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) 
        GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) 
        GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") 
        GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22")     
        guiSetVisible (GUIEditor.window[1] , false) 
    end 
) 
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    local Serial = guiGetText ( GUIEditor.edit[2] ) 
    local Tag = guiGetText ( GUIEditor.edit[1] ) 
   if ( source == GUIEditor.button[2]  ) then 
     if ( string.len ( Serial ) == 32 ) then 
     setSerialData ( Serial, "TagState", "Enable" ) 
     setSerialData ( Serial, "playerTag",Tag ) 
                    end 
       else 
          if ( source == GUIEditor.button[1] ) then 
           setSerialData ( Serial, "TagState", "Disable" ) 
                     end 
              end 
end ) 
  
function setSerialData(serial,key,value) 
 if( value and type(serial) == "string") then 
  setElementData(root,serial.."&"..key,value) 
  end 
end 
  

سيرفر

  
  
addEventHandler ( "onPlayerChat", root, function ( msg ) 
   if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then 
   cancelEvent (   ) 
   outputChatBox (" ( "..getSerialData ( getPlayerSerial ( source ), "playerTag" ).." ) "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) 
       end 
end ) 
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
  

و التاج حق الادمن

timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
local root = getRootElement() 
  
function chatbox(text, msgtype) 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
         
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        end 
         
end 
addEventHandler("onPlayerChat", root, chatbox)   
         
  

ابيه م يتكرر

مثأل

الان انا معي رتبة هيد ادمن و اخذت تاج خاص

يجي تاج الهيد ادمن و تاج الخاص انا ابي بس يجي التاج الخاص و السلام خير الختآم

نتمنى الرد ي حلوينء :D

Posted

أعتقد رديت بموضوعك السابق وعدلت لك الكود وخليته ما يكرر ليه الموضوع الثآني؟

function chatbox( text, type) 
       if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
  
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
  
 function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
Posted
أعتقد رديت بموضوعك السابق وعدلت لك الكود وخليته ما يكرر ليه الموضوع الثآني؟
function chatbox( text, type) 
       if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
  
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
  
 function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

يب هذاك تاج غير وهذا غير شكه ذا غير جربته م نفعت ي ليلة ي اخوي تزبه اذا ممكن

Posted

-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox)  

Posted
-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox)  

جربت مو شغال التاج حق اادمن اما التاج زبط حق الخاص ام تاج الرتب مو شغال

Posted
-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox)  

function chatbox(text, msgtype) 
local serial = getPlayerSerial (source) 
  if getSerialData ( serial, "TagState" ) ~= "Enable" then return end --Cancel ? << if Enable ? 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  

:lol::lol:

Posted
-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox)  

function chatbox(text, msgtype) 
local serial = getPlayerSerial (source) 
  if getSerialData ( serial, "TagState" ) ~= "Enable" then return end --Cancel ? << if Enable ? 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  

:lol::lol:

اي تحت كلنت؟ ولا سيرفر؟ولا وش

Posted
-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
  if getPlayerAccount(source) then 
  if getAccountData(getPlayerAccount(source),"TagData") then 
   outputChatBox(getAccountData(getPlayerAccount(source),"TagData")..": #ffffff"..text,root,255,255,255,true) 
   cancelEvent() 
   return 
  end 
 end 
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox)  

function chatbox(text, msgtype) 
local serial = getPlayerSerial (source) 
  if getSerialData ( serial, "TagState" ) ~= "Enable" then return end --Cancel ? << if Enable ? 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  

:lol::lol:

وليه تضحك ؟ الكود اللي تقول عليه او السطور هذي تمام .

Posted

طيب هو حاط لو ال

getSerialData == "Enable"

يسوي

Return :|

ولو السيريال داتا مفعل لازم يكمل الشرط علشان يظهر بالشات ياذكي

Posted
هو حاطت لو مانه متفعل -_-"

ركز بلكود

~= 

هذا انا حطيته بعد ماسويته بالسيرفر ^ ^

اصعد فوق وشوف كوده ~~

Posted
للتأكيد

8)

ممكن تقولنا آيش الخطأ يالحلو؟

أنا سويت اذا معاه الداتا يرجع الوظيفة للنهاية

ما عندك سالفة ماله داعي تتفلسف وآججد ذذ (( ==

Posted
انت مسوي لو معه الداتا

Enable

يوقف الوظيفة ومايعطيه التاج

هذا المطلوب ي آخ ذذ

ياليت لو تراجع الموضوع وتقرآهـ

هو مسوي تاج خاص ع السيريال ومسوي تاج أدمن ويبي لو معاه تاج خاص ما يعطيه تاج الأدمن عشآن لا يكرر ذذ !! :wink:

Posted
وانت مسوي لو معه التاج مايعطيه التاج الخاص

: |

مسوي

==

بدل ماتسوي عدم توفر

~=

أنا مسوي لو السورس معاه الداتا حقت التاج الخاص يرجع الوظيفة للنهاية وخلصنا ! :?

لو سويت مثل ما تقول أنت فـ تآج الأدمن ما راح يجي الا للي معاه التاج حق السيريال -_-"

Posted

-- # Server Side : 
  
function chatbox( text, type) 
       if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
  
 function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
Posted
-- # Server Side : 
  
function chatbox( text, type) 
       if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
  
 function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

هذا التاج الاجمن القديم الان انا اديتك واحد غير ذا شوف حبي ي سسفاح هذا هو تاج الادمن

  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox) 
  

Posted

أشوف أن الكود حق التحقق مضاف للتاج باقي يكرر !؟

ع العموم جرب كذآ

-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox) 
  
  function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
Posted
أشوف أن الكود حق التحقق مضاف للتاج باقي يكرر !؟

ع العموم جرب كذآ

-- # Server Side : 
  
timer = {} 
  
addCommandHandler("77", 
    function (player) 
        if hasObjectPermissionTo(player,"command.kick",true) then 
            if isTimer(timer[player]) then outputChatBox("[  Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end 
            for i=1,15 do 
                outputChatBox(" ") 
            end 
            outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) 
            timer[player] = setTimer(function () end,5000,1) 
        else 
            outputChatBox("[  Chat ] : انت لست ادمن *",player,255,0,0) 
        end 
    end 
) 
  
function chatbox(text, msgtype) 
  if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
  
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then 
        outputChatBox("NO" .. text, root, 255, 255, 255, true) 
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
    cancelEvent() 
        outputChatBox("*#FF0000 [ Console #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then 
    cancelEvent() 
        outputChatBox("#665566[ManagerS]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
  
            elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then 
    cancelEvent() 
        outputChatBox("#66FF55[Criminal]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FYBC[Dieputy.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then 
    cancelEvent() 
        outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then 
    cancelEvent() 
        outputChatBox("#66FFCC[Leader.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then 
    cancelEvent() 
        outputChatBox("#990099[V.I.P-Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then 
    cancelEvent() 
        outputChatBox("#CC3399[besT.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then 
    cancelEvent() 
        outputChatBox("#CCFF33[super.Admin]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then 
    cancelEvent() 
        outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990066Big.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then 
    cancelEvent() 
        outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then 
    cancelEvent() 
        outputChatBox("* [ #ff0000Prince.admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then 
    cancelEvent() 
        outputChatBox("* [ #00ff00Prince.Server#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #990000KinG.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then 
    cancelEvent() 
        outputChatBox("* [#660000Admin.TOP#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then 
    cancelEvent() 
        outputChatBox("* [#99CC00 Admin.Black#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then 
    cancelEvent() 
        outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then 
    cancelEvent() 
        outputChatBox("#0099ff* [ Admin.BOOS ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then 
    cancelEvent() 
        outputChatBox("* [ #669999Admin.MFA#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then 
    cancelEvent() 
        outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Professional.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then 
    cancelEvent() 
        outputChatBox("* [ #000066Head.Admin#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then 
    cancelEvent() 
        outputChatBox("* [ #000066ADMIN#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
    cancelEvent() 
        outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
    cancelEvent() 
        outputChatBox("* [ #FF0000 Moderator#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then 
    cancelEvent() 
        outputChatBox("* [#00FF00Police#FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then 
    cancelEvent() 
        outputChatBox("* [#FF0000 V.I.P#FFFFFF ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then 
    cancelEvent() 
        outputChatBox("* [ #CC0000king Dirft#FFFFFF  ]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
        
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
    cancelEvent() 
        outputChatBox("#669966[ play #FFFFFF]    x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) 
              end 
        end 
addEventHandler("onPlayerChat", root, chatbox) 
  
  function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

م زبط والله

Posted
جربته شغآل يكرر عندك !؟

ي الحب م يكررر ب لم م اسسوي لي تاج خا صصصص

م يشتغل تاج الادمن

الزبدههه

م يكرر بس التاج حق اادمن خرب صار م يظهر بي الشآت

Posted

جربته للمرة الثانية وسويت تاج خاص لي وتاج الأدمن رآح يعني ما يكرر ذذذ وحذفت التاج رجع تآج الأدمن ذذ

هذا الي تبيه ولا شيء ثاني !؟

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.
×
×
  • Create New...