Jump to content

مساعدة في تاج


momar5700

Recommended Posts

                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Everyone")) then 
                    outputChatBox("Everyone#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. msg,root,0,100,200,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 

سلام عليكم ورحمة الله وبركاته

ابي احط لما يكون عندك تحميل يجي في تاج

بدل Everyone

الي

Download

وش اسوي ابي لما تكون عندك تحميل لما تكتب في شات يجي تاجك

Download والكلام الي كتبته واسسمك

فهمتو لاني اشوف بعض سيرفرات مسوين كدا فابي اعرف كيف

كيف اسويها

Link to comment
-- client 
addEventHandler('onClientResourceStart',root, 
function () 
    setElementData(localPlayer,'DL',false) 
end ) 
  
-- server 
addEventHandler("onPlayerChat", root, 
function(_, x) 
    if x == 0 then 
        cancelEvent() 
        if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Everyone")) then 
            if getElementData ( source , "DL" ) == true then 
                outputChatBox("Download#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) 
            else 
                outputChatBox("Everyone#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) 
            end 
        end 
    end 
end ) 
  
addEventHandler('onPlayerJoin',root, 
function () 
    setElementData(source,'DL',true) 
end ) 
  
  

Link to comment

^

-- client 
  
addEventHandler ( 'onClientResourceStart', resourceRoot, function (  ) 
    if ( isTransferBoxActive (  ) ~= true ) then 
        setElementData ( localPlayer, 'DL', 'Actived' ) 
    else 
        setElementData ( localPlayer, 'DL', 'Disabled' ) 
    end 
end ) 
  
-- server 
  
addEventHandler ( 'onPlayerChat', root, function ( msg, x ) 
    if ( x == 0 ) then 
        cancelEvent (   ) 
    end 
    if ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then 
        if ( getElementData ( source , 'DL' ) == 'Actived' ) then 
            outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
        else 
            outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
        end 
    end 
end ) 
Edited by Guest
Link to comment

^

-- client
 
addEventHandler ( 'onClientResourceStart', resourceRoot, function (  )
    if ( isTransferBoxActive (  ) ~= true ) then
        setElementData ( localPlayer, 'DL', 'Actived' )
    else
        setElementData ( localPlayer, 'DL', 'Disabled' )
    end
end )
 
-- server
 
addEventHandler ( 'onPlayerChat', root, function ( msg, x )
    if ( x == 0 ) then
        cancelEvent (   )
    end
    if ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then
        if ( getElementData ( source , 'DL' ) == 'Actived' ) then
            outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true)
        else
            outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true)
        end
    end
end )

okeh

كل واحد وله اسلوبه

Link to comment

عندي مشكله ماشتغل

addEventHandler("onPlayerChat",root, 
    function (msg) 
      if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
        cancelEvent() 
        if not isWord(msg) then 
            if not LM[source] then 
                LM[source] = msg 
            else 
                if LM[source] ~= msg then 
                    LM[source] = msg 
                else 
                    return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) 
                end 
            end 
            if not isTimer(time[source]) then 
                if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then 
                    outputChatBox("#C11B17# 〖 Server Owner 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Time")) then 
                    outputChatBox("#FFFFFF# 〖King Of Time 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P")) then 
                    outputChatBox("#c1c1c1# 〖 V.I.P 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VotePolice")) then 
                    outputChatBox("#02A2B0#〖 VotePolice 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then 
                    outputChatBox("#00B1C1# 〖 Police 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VoteModerator")) then 
                    outputChatBox("#00BCCD# 〖 VoteModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator")) then 
                    outputChatBox("#00CDDF# 〖 Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator2")) then 
                    outputChatBox("#00D9ED# 〖 Moderator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator")) then 
                    outputChatBox("#00EAFF# 〖 SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator2")) then 
                    outputChatBox("#00B300# 〖 SuperModerator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then 
                    outputChatBox("#00CF00# 〖 Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Head.Admin")) then 
                    outputChatBox("#00E700# 〖 Head.Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Speical Admin")) then 
                    outputChatBox("#00F400# 〖Speical Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Prince of Server")) then 
                    outputChatBox("#00FF00# 〖 Prince of Server 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Leader Admin")) then 
                    outputChatBox("#3BB9FF# 〖 Leader Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Professional Admin")) then 
                    outputChatBox("# [ Professional Admin ] " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P Admin")) then 
                    outputChatBox("#0069c7# 〖 V.I.P Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Top")) then 
                    outputChatBox("#FFFFFF# 〗 Admin Top 〖 " .. getPlayerName(source) .. ":#EBDDB2" .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Server")) then 
                    outputChatBox("#0033CC#  #FFFFFF〖 #0033CCKing O#FFFFFFf Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Best Admin")) then 
                    outputChatBox("#CC0000# 〖 Best Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Boss")) then 
                    outputChatBox("#FFF000##FFFFFF 〖 #FFFFFFAdmin#FF0000Boss 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Plus")) then 
                    outputChatBox("#003366#〖 Admin Plus 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Big admin")) then 
                    outputChatBox("#6666CC# 〖Big admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Monitor")) then 
                    outputChatBox("#FFF000# 〖 Admin Monitor 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Emperor Of Server")) then 
                    outputChatBox("#00FF00# 〗 Emperor Of Server 〖 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Official")) then 
                    outputChatBox("#cc0000# 〖 Admin Official 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Prime")) then 
                    outputChatBox("#cc0000# 〖 Admin Prime 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin General")) then 
                    outputChatBox("#cc0000# 〖 Admin General 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("KING ADMIN ")) then 
                    outputChatBox("#cc0000# 〖 KING ADMIN  〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN POWER")) then 
                    outputChatBox("#cc0000# 〖 ADMIN POWER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN SERVER")) then 
                    outputChatBox("#cc0000# 〖 ADMIN SERVER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN M7TRF")) then 
                    outputChatBox("#cc0000# 〖 ADMIN M7TRF 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("PRINCE ADMIN")) then 
                    outputChatBox("#cc0000# 〖 PRINCE ADMIN 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Senior Admin")) then 
                    outputChatBox("#cc0000# 〖 Senior Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SPECIALPRINCE")) then 
                    outputChatBox("#cc0000# 〖 SPECIALPRINCE 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Control")) then 
                    outputChatBox("#cc0000# 〖 مصمم تاجات 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-SuperModerator")) then 
                    outputChatBox("#cc0000# 〖 Console-SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Home")) then 
                    outputChatBox("#cc0000# 〖 Console-Home 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Moderator")) then 
                    outputChatBox("#cc0000# 〖 Console-Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Managers-Console")) then 
                    outputChatBox("#cc0000# 〖 Managers-Console 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin-EX")) then 
                    outputChatBox("#FFFFFFxX| #000000Admin.Ex #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ExAdmin")) then 
                    outputChatBox("#FFFFFFxX| #000000 مخالف مانجرس كان يلعب في لوحة مخلفات #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then 
                if ( getElementData ( source , 'DL' ) == 'Actived' ) then 
                outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
                else 
                outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
                end 
                time[source] = setTimer(function() end,1200,1) 
            else 
               outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) 
            end 
        else 
            return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : هذهـ الـكـلمـات ممنوع بالسيرفر',source,255,0,0,true) 
        end 
    end 
end 
) 
  

ماعندي تحميل

Link to comment

# Server Side

addEventHandler("onPlayerChat",root, 
    function (msg) 
      if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
        cancelEvent() 
        if not isWord(msg) then 
            if not LM[source] then 
                LM[source] = msg 
            else 
                if LM[source] ~= msg then 
                    LM[source] = msg 
                else 
                    return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) 
                end 
            end 
            if not isTimer(time[source]) then 
                if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then 
                    outputChatBox("#C11B17# 〖 Server Owner 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Time")) then 
                    outputChatBox("#FFFFFF# 〖King Of Time 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P")) then 
                    outputChatBox("#c1c1c1# 〖 V.I.P 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VotePolice")) then 
                    outputChatBox("#02A2B0#〖 VotePolice 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then 
                    outputChatBox("#00B1C1# 〖 Police 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VoteModerator")) then 
                    outputChatBox("#00BCCD# 〖 VoteModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator")) then 
                    outputChatBox("#00CDDF# 〖 Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator2")) then 
                    outputChatBox("#00D9ED# 〖 Moderator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator")) then 
                    outputChatBox("#00EAFF# 〖 SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator2")) then 
                    outputChatBox("#00B300# 〖 SuperModerator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then 
                    outputChatBox("#00CF00# 〖 Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Head.Admin")) then 
                    outputChatBox("#00E700# 〖 Head.Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Speical Admin")) then 
                    outputChatBox("#00F400# 〖Speical Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Prince of Server")) then 
                    outputChatBox("#00FF00# 〖 Prince of Server 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Leader Admin")) then 
                    outputChatBox("#3BB9FF# 〖 Leader Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Professional Admin")) then 
                    outputChatBox("# [ Professional Admin ] " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P Admin")) then 
                    outputChatBox("#0069c7# 〖 V.I.P Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Top")) then 
                    outputChatBox("#FFFFFF# 〗 Admin Top 〖 " .. getPlayerName(source) .. ":#EBDDB2" .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Server")) then 
                    outputChatBox("#0033CC#  #FFFFFF〖 #0033CCKing O#FFFFFFf Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Best Admin")) then 
                    outputChatBox("#CC0000# 〖 Best Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                                                                                   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Boss")) then 
                    outputChatBox("#FFF000##FFFFFF 〖 #FFFFFFAdmin#FF0000Boss 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Plus")) then 
                    outputChatBox("#003366#〖 Admin Plus 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Big admin")) then 
                    outputChatBox("#6666CC# 〖Big admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Monitor")) then 
                    outputChatBox("#FFF000# 〖 Admin Monitor 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Emperor Of Server")) then 
                    outputChatBox("#00FF00# 〗 Emperor Of Server 〖 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Official")) then 
                    outputChatBox("#cc0000# 〖 Admin Official 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Prime")) then 
                    outputChatBox("#cc0000# 〖 Admin Prime 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin General")) then 
                    outputChatBox("#cc0000# 〖 Admin General 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("KING ADMIN ")) then 
                    outputChatBox("#cc0000# 〖 KING ADMIN  〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN POWER")) then 
                    outputChatBox("#cc0000# 〖 ADMIN POWER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN SERVER")) then 
                    outputChatBox("#cc0000# 〖 ADMIN SERVER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN M7TRF")) then 
                    outputChatBox("#cc0000# 〖 ADMIN M7TRF 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("PRINCE ADMIN")) then 
                    outputChatBox("#cc0000# 〖 PRINCE ADMIN 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Senior Admin")) then 
                    outputChatBox("#cc0000# 〖 Senior Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SPECIALPRINCE")) then 
                    outputChatBox("#cc0000# 〖 SPECIALPRINCE 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Control")) then 
                    outputChatBox("#cc0000# 〖 مصمم تاجات 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-SuperModerator")) then 
                    outputChatBox("#cc0000# 〖 Console-SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Home")) then 
                    outputChatBox("#cc0000# 〖 Console-Home 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Moderator")) then 
                    outputChatBox("#cc0000# 〖 Console-Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Managers-Console")) then 
                    outputChatBox("#cc0000# 〖 Managers-Console 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin-EX")) then 
                    outputChatBox("#FFFFFFxX| #000000Admin.Ex #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ExAdmin")) then 
                    outputChatBox("#FFFFFFxX| #000000 مخالف مانجرس كان يلعب في لوحة مخلفات #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) 
                    outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) 
                elseif ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then 
                if ( getElementData ( source , 'DL' ) == 'Actived' ) then 
                outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
                else 
                outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) 
                end 
                time[source] = setTimer(function() end,1200,1) 
            else 
               outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) 
            end 
        else 
            return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : هذهـ الـكـلمـات ممنوع بالسيرفر',source,255,0,0,true) 
        end 
    end 
end 
) 

# Client Side

addEventHandler ( 'onClientResourceStart', resourceRoot, function (  ) 
    if ( isTransferBoxActive (  ) ~= false ) then 
        setElementData ( localPlayer, 'DL', 'Actived' ) 
    else 
        setElementData ( localPlayer, 'DL', 'Disabled' ) 
    end 
end ) 
Link to comment

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...