Jump to content

مشكلة في كود


Recommended Posts

طيب و ده

الكود سليم و شغال بس

التاح مش بيظهر

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
local root = getRootElement() 
  
function chatbox(text, msgtype) 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
    else 
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
     
        end 
         
function GRAND() 
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
end 
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
end 
  

Link to comment

طيب و ده

الكود سليم و شغال بس

التاح مش بيظهر

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
local root = getRootElement() 
  
function chatbox(text, msgtype) 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
    else 
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
     
        end 
         
function GRAND() 
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
end 
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
end 
  

Link to comment
  
'onPlayerChat' 
cancelEvent 
  

انا اعاوز اعرف الخطا فين مش اكتر

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
local root = getRootElement() 
  
function chatbox(text, msgtype) 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
    else 
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
     
        end 
         
function GRAND() 
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
end 
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
end 
  
  
  
     
  

Link to comment
  
'onPlayerChat' 
cancelEvent 
  

انا اعاوز اعرف الخطا فين مش اكتر

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
local root = getRootElement() 
  
function chatbox(text, msgtype) 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
 cancelEvent() 
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
    else 
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
     
        end 
         
function GRAND() 
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
end 
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
end 
  
  
  
     
  

Link to comment

خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

Link to comment

خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

Link to comment

lمعليش ما شفت الصفحة الثانية

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
  
local root = getRootElement() 
  
  
  
function chatbox(text, msgtype) 
  
    local account = getAccountName(getPlayerAccount(source)) 
  
    local name = getPlayerName(source) 
  
 cancelEvent() 
  
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
  
  
    else 
  
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
  
     
  
        end 
  
        
  
end 
addEventHandler('onPlayerChat',root,chatbox) 
  
function GRAND() 
  
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
  
  
end 
  
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
  

Link to comment

lمعليش ما شفت الصفحة الثانية

outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) 
  
local root = getRootElement() 
  
  
  
function chatbox(text, msgtype) 
  
    local account = getAccountName(getPlayerAccount(source)) 
  
    local name = getPlayerName(source) 
  
 cancelEvent() 
  
    if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
        outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) 
  
  
  
    else 
  
        outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) 
  
     
  
        end 
  
        
  
end 
addEventHandler('onPlayerChat',root,chatbox) 
  
function GRAND() 
  
    outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) 
  
  
  
end 
  
addEventHandler("onPlayerJoin", getRootElement(), GRAND) 
  

Link to comment
خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

  
function chatbox( text, type) 
  
  
    cancelEvent() 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 

Link to comment
خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

  
function chatbox( text, type) 
  
  
    cancelEvent() 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 

Link to comment
خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

  
function chatbox( text, type) 
  
  
    cancelEvent() 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 

تم شكرا تعبتك مي :fadein:

Link to comment
خلاص حليت المشكلة

------

  
function chatbox( text, type) 
  
  
  
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
  

الكلام يظهر مرتين مع العلم انا قافل الفري روم

146018900046111.png

  
function chatbox( text, type) 
  
  
    cancelEvent() 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
  
   if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
    
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
  
     
  
        outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then 
  
     
  
        outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true)        
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then 
  
     
  
        outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) 
  
        
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then 
  
     
  
        outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then 
  
     
  
        outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then 
  
     
  
        outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then 
  
     
  
        outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then 
  
     
  
        outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then 
  
     
  
        outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then 
  
     
  
        outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then 
  
   
  
        outputChatBox("#2A6652* [ Deleverpoe ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then 
  
     
  
        outputChatBox("#888888* [ Head Admin ]  " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 
  
  
  
     
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then 
  
     
  
        outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) 
  
         
  
    elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
  
     
  
        outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 
  
  
  
                end  
  
  
  
end 
  
  
  
addEventHandler("onPlayerChat", getRootElement(), chatbox) 

تم شكرا تعبتك مي :fadein:

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