Jump to content

مشكلة في كود


Recommended Posts

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

اما بعد

ايه الغلط في الكود ده؟؟

   elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
     
        outputChatBox("#a5a5a5*[Owner] " sαєɒαмєя ":#ff0055 " .. text, root, 255, 255, 255, true) 

146018245780571.png

Link to comment

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

اما بعد

ايه الغلط في الكود ده؟؟

   elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then 
     
        outputChatBox("#a5a5a5*[Owner] " sαєɒαмєя ":#ff0055 " .. text, root, 255, 255, 255, true) 

146018245780571.png

Link to comment
outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 

جرب

ظبط

طب و ده

if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 

146018326238111.png

Link to comment
outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) 

جرب

ظبط

طب و ده

if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
        outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) 

146018326238111.png

Link to comment
function chatbox( text, type) 
  
  
   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) 
  
  
function createTeamsOnStart () 
     
    outputChatBox ( "* * * ?? ??? ????? ?????? ???????? * * * ", hitter, 241, 227, 13, true ) 
    roobB = createObject (2634, 308.10000610352, 2516.3999023438, 17.5, 0, 0, 186)   
    for i,player in ipairs(getElementsByType("player")) do 
    setElementData(player, "Marker_destoy", 0) 
        setElementData(player, "MiissoinStart", false)   
    end 
     
end 
  
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 

Link to comment
function chatbox( text, type) 
  
  
   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) 
  
  
function createTeamsOnStart () 
     
    outputChatBox ( "* * * ?? ??? ????? ?????? ???????? * * * ", hitter, 241, 227, 13, true ) 
    roobB = createObject (2634, 308.10000610352, 2516.3999023438, 17.5, 0, 0, 186)   
    for i,player in ipairs(getElementsByType("player")) do 
    setElementData(player, "Marker_destoy", 0) 
        setElementData(player, "MiissoinStart", false)   
    end 
     
end 
  
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 

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) 
  
  

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) 
  
  

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) 
  
  

تم شكرا

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) 
  
  

تم شكرا

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