Jump to content

طلب تأأأأأأأأأأأأأاااج لسيرفر


MeZo999

Recommended Posts

سلام عليكم انا عندي تاج للادمنيه وشغال معي 100 // 100 بس بدي كود للاعضاء يعني تاج للاعضاء اول ما يدخل للاعب يكون التاج معاه بدون ما اروح احطه في الاسل

يعني مثلا انا دخلت سيرفر وجسلت فيه وبديت العب ابي تاج يطلع للاعب بدون رتبة او ترقية تطلع له و لكل الاعضاء اليذين مش ادمنيه

وابي اقدر اعدل على التاج الي يطلع في الشاات :D

يا ريت تساعدوني اخوكم ميزو وشكراأأ شباب

Link to comment
سلام عليكم انا عندي تاج للادمنيه وشغال معي 100 // 100 بس بدي كود للاعضاء يعني تاج للاعضاء اول ما يدخل للاعب يكون التاج معاه بدون ما اروح احطه في الاسل

يعني مثلا انا دخلت سيرفر وجسلت فيه وبديت العب ابي تاج يطلع للاعب بدون رتبة او ترقية تطلع له و لكل الاعضاء اليذين مش ادمنيه

وابي اقدر اعدل على التاج الي يطلع في الشاات :D

يا ريت تساعدوني اخوكم ميزو وشكراأأ شباب

# ي اخ انزل التاج تحت اخر شي

تلقا elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then

تجي تحت ذا السطر كذا

outputChatBox("هنا اكتب التاج" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 

Link to comment

function RGBToHex(red, green, blue, alpha) 
    if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then 
        return nil 
    end 
    if(alpha) then 
        return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) 
    else 
        return string.format("#%.2X%.2X%.2X", red,green,blue) 
    end 
end 
  
addEventHandler ( "onPlayerChat", root, 
function ( text, type ) 
      
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminS")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #660000[Head Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #666666[Console] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Owner")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Owner] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
         
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 1")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFCCCC[lvl 1] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999999[lvl 2] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #993333[lvl 3] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 4")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999900[lvl 4] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
     
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KinG Of Sever")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#993300* [KinG Of Sever] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FF0000 " .. text, getRootElement(), r, g, b, true )     
     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Trusted")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #66FF33[Trusted] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
     
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("support")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF9999[support] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
     
            elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Admin] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
     
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #006699[Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )     
     
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFFFFF[#660000V#FF9900I#000000P#FFFFFF] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true )    
  
        end 
    end 
) 
  

هاذا الكود اخي تقدر تعدل لي عليه وربي ما فهمت ض1

ابي يكون تاج للاعضاء يكون اسم التاج ARMY يا حبيبي ساعدني

Link to comment

هاذا الكود اخي تقدر تعدل لي عليه وربي ما فهمت ض1

ابي يكون تاج للاعضاء يكون اسم التاج ARMY يا حبيبي ساعدني

function RGBToHex(red, green, blue, alpha) 
    if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then 
        return nil 
    end 
    if(alpha) then 
        return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) 
    else 
        return string.format("#%.2X%.2X%.2X", red,green,blue) 
    end 
end 
  
addEventHandler ( "onPlayerChat", root, 
function ( text, type ) 
      
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminS")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #660000[Head Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
     elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #770000[Army] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #666666[Console] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Owner")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Owner] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
        
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 1")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFCCCC[lvl 1] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999999[lvl 2] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #993333[lvl 3] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 4")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999900[lvl 4] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
    
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KinG Of Sever")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#993300* [KinG Of Sever] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FF0000 " .. text, getRootElement(), r, g, b, true )    
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Trusted")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #66FF33[Trusted] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
    
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("support")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF9999[support] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
    
            elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Admin] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )  
    
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #006699[Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )    
    
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFFFFF[#660000V#FF9900I#000000P#FFFFFF] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true )    
  
        end 
    end 
) 
  
Link to comment
اخوي انا جربتة لما دخلت وانا كونسل اعطاني تاجي التاج تبعي اعطاني اياه ارمي وانا كونسل

ابي ارمي بس للاعضاء بس

._. يعني انه بيعطيك التاج Everyone اول ما تدخل اساسا بتكون في قروب

Edit #

تقدر تتحقق من سريال اللاعب اذا كان كونسل ما يعطيه تاج ذذ

Link to comment

سبب انه يطلع ارمي وانت كونسل لأنه يتأكد انك بقروب افري ون قبل مايتأكد انك في قروب كونسل عشان كذا جا لك ارمي

الحل كذا

function RGBToHex(red, green, blue, alpha) 
    if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then 
        return nil 
    end 
    if(alpha) then 
        return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) 
    else 
        return string.format("#%.2X%.2X%.2X", red,green,blue) 
    end 
end 
  
addEventHandler ( "onPlayerChat", root, 
function ( text, type ) 
      
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminS")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #660000[Head Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #666666[Console] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )   
        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Owner")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Owner] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
        
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 1")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFCCCC[lvl 1] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999999[lvl 2] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #993333[lvl 3] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("lvl 4")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #999900[lvl 4] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
    
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KinG Of Sever")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#993300* [KinG Of Sever] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FF0000 " .. text, getRootElement(), r, g, b, true )   
    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Trusted")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #66FF33[Trusted] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )   
    
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("support")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF9999[support] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )   
    
            elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FF0000[Admin] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
    
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin3")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #006699[Leader] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true )   
    
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
  
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #FFFFFF[#660000V#FF9900I#000000P#FFFFFF] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true )   
      elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
    local playerTeam = getPlayerTeam( source ) 
     r, g, b = getTeamColor ( playerTeam ) 
     local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* #770000[Army] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FDD017 " .. text, getRootElement(), r, g, b, true ) 
        
        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...