Jump to content

كود getPlayerSerial


Recommended Posts

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

ممكن تشوفو المشكلةة ._.

-- Big.Admin إذا كان الحساب في قروب 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
 if getPlayerSerial(source) == "1814482C1448A2015608C81BF5DD46B2" then 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- عند التحدث في الشات       
        outputChatBox("#C11B17* [ Head Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------         
-- Admin2 إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#dd0000* [ Scripter ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------                 
-- Photo إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#A23bbb* [ Photoshoper ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Admin إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#ff0000* [ Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------ 
     
-- SM إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#00cc11* [ SuperMod 1 ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- Moderator إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#0099DC* [ Moderator 1 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- V.I.P إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص 
        outputChatBox("#999999* [ V I P ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Vote إذا كان الحساب في قروب         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#7F5A58* [ Voted To Mod ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- KingDrift إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FDD017* [ King Of Drift ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Moderator2 إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#2554C7* [ Moderator 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- SuperModerator2 إذا كان الحساب في قروب      
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#259117* [ SuperMod 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- time إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FFA500* [ King Of Time ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
         
------------------------------------------------------------     
-- NoAdmin إذا كان الحساب في قروب      
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#999999* [ Admin - ex ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------     
-- workshop إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#A23BEC* [ WorkShop ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text)             
  
------------------------------------------------------------     
-- Police إذا كان الحساب في قروب       
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#0099cc* [ Police ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------ 
-- Everyone اذا كان الحساب في قروب -- الزوار     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) 
-- لـ جعل نكات الزوار بـ ألوان 
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )          
         

Link to comment
السلام عليكم ورحمة الله وبركآته

ممكن تشوفو المشكلةة ._.

-- Big.Admin إذا كان الحساب في قروب 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
 if getPlayerSerial(source) == "6CB120CA2C6ADA029E97FC67787B3F44" then 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- عند التحدث في الشات       
        outputChatBox("#C11B17* [ Head Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------         
-- Admin2 إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#dd0000* [ Scripter ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------                 
-- Photo إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#A23bbb* [ Photoshoper ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Admin إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#ff0000* [ Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------ 
     
-- SM إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#00cc11* [ SuperMod 1 ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- Moderator إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#0099DC* [ Moderator 1 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- V.I.P إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص 
        outputChatBox("#999999* [ V I P ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Vote إذا كان الحساب في قروب         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#7F5A58* [ Voted To Mod ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- KingDrift إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FDD017* [ King Of Drift ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Moderator2 إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#2554C7* [ Moderator 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- SuperModerator2 إذا كان الحساب في قروب      
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#259117* [ SuperMod 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- time إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FFA500* [ King Of Time ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
         
------------------------------------------------------------     
-- NoAdmin إذا كان الحساب في قروب      
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#999999* [ Admin - ex ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------     
-- workshop إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#A23BEC* [ WorkShop ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text)             
  
------------------------------------------------------------     
-- Police إذا كان الحساب في قروب       
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#0099cc* [ Police ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------ 
-- Everyone اذا كان الحساب في قروب -- الزوار     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) 
-- لـ جعل نكات الزوار بـ ألوان 
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )          
         

Link to comment

جرب

if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) and getPlayerSerial(source) == "1814482C1448A2015608C81BF5DD46B2" then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 

Link to comment
جرب
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) and getPlayerSerial(source) == "1814482C1448A2015608C81BF5DD46B2" then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 

ماضبط ._.

Link to comment
اطرح الكود كامل

انا طرحت التاج + حطيت كود بس التاج يخرب ومايضبط :(

-- وظيفة الشات 
function chatbox( text, type) 
  
------------------------------------------------------------ 
-- Big.Admin إذا كان الحساب في قروب 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) and getPlayerSerial(source) == "6CB120CA2C6ADA029E97FC67787B3F44" then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
    --------------------------------------------------------------------------- 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- عند التحدث في الشات       
        outputChatBox("#C11B17* [ Head Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------         
-- Admin2 إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#dd0000* [ Scripter ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------                 
-- Photo إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#A23bbb* [ Photoshoper ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Admin إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#ff0000* [ Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------ 
     
-- SM إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#00cc11* [ SuperMod 1 ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- Moderator إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#0099DC* [ Moderator 1 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------             
-- V.I.P إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص 
        outputChatBox("#999999* [ V I P ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Vote إذا كان الحساب في قروب         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox("#7F5A58* [ Voted To Mod ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- KingDrift إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FDD017* [ King Of Drift ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------     
-- Moderator2 إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#2554C7* [ Moderator 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- SuperModerator2 إذا كان الحساب في قروب      
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#259117* [ SuperMod 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
         
------------------------------------------------------------     
-- time إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#FFA500* [ King Of Time ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
         
------------------------------------------------------------     
-- NoAdmin إذا كان الحساب في قروب      
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#999999* [ Admin - ex ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------     
-- workshop إذا كان الحساب في قروب         
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#A23BEC* [ WorkShop ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text)             
  
------------------------------------------------------------     
-- Police إذا كان الحساب في قروب       
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox("#0099cc* [ Police ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text)           
  
------------------------------------------------------------ 
-- Everyone اذا كان الحساب في قروب -- الزوار     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص         
        outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) 
-- لـ جعل نكات الزوار بـ ألوان 
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص         
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )          
         
------------------------------------------------------------         
-- نهاية أكواد مخارج النص         
        end 
------------------------------------------------------------     
-- نهاية الوظيفة         
end 
-- متى تحدث وظيفة الشات 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
-- onPlayerChat = عند تحدث اللاعب في الشات 

Link to comment
172 سطر

من الصعب نكتشف الخطا + كودك عفسة حاول ترتبه

فكـ الديبوق : debugscript 3

وشف الاخطاء اللي تجي من سكربت التاج .

يطلع لي ,

OR:Loading script failed: xTAG/tag.lua:23: 'end' expected (to close 'if' at line 15 ) near 'elseif'

:shock:

Link to comment

Try this

local YourSerial = "6CB120CA2C6ADA029E97FC67787B3F44" 
  
function chatbox( text, type) 
------------------------------------------------------------ 
-- Big.Admin إذا كان الحساب في قروب 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        if ( getPlayerSerial (source) == YourSerial ) then 
        outputChatBox("#FF0000* [ aLMzH ]  #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) 
        else 
        outputChatBox("#C11B17* [ Server Owner ]  #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
        end 
    --------------------------------------------------------------------------- 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- عند التحدث في الشات      
        outputChatBox("#C11B17* [ Head Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------        
-- Admin2 إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#dd0000* [ Scripter ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------                
-- Photo إذا كان الحساب في قروب 
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#A23bbb* [ Photoshoper ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------    
-- Admin إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#ff0000* [ Admin ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
        
------------------------------------------------------------ 
    
-- SM إذا كان الحساب في قروب      
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#00cc11* [ SuperMod 1 ]  " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------            
-- Moderator إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#0099DC* [ Moderator 1 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------            
-- V.I.P إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص 
        outputChatBox("#999999* [ V I P ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------    
-- Vote إذا كان الحساب في قروب        
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox("#7F5A58* [ Voted To Mod ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------    
-- KingDrift إذا كان الحساب في قروب       
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#FDD017* [ King Of Drift ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) 
  
------------------------------------------------------------    
-- Moderator2 إذا كان الحساب في قروب      
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#2554C7* [ Moderator 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
        
------------------------------------------------------------    
-- SuperModerator2 إذا كان الحساب في قروب     
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#259117* [ SuperMod 2 ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) 
        
------------------------------------------------------------    
-- time إذا كان الحساب في قروب        
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#FFA500* [ King Of Time ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)          
        
------------------------------------------------------------    
-- NoAdmin إذا كان الحساب في قروب     
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#999999* [ Admin - ex ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text)          
  
------------------------------------------------------------    
-- workshop إذا كان الحساب في قروب        
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#A23BEC* [ WorkShop ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text)            
  
------------------------------------------------------------    
-- Police إذا كان الحساب في قروب      
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox("#0099cc* [ Police ]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text)          
  
------------------------------------------------------------ 
-- Everyone اذا كان الحساب في قروب -- الزوار    
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
-- المخرج النص        
        outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) 
-- لـ جعل نكات الزوار بـ ألوان 
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
-- مخرج النص        
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )         
        
------------------------------------------------------------        
-- نهاية أكواد مخارج النص        
        end 
------------------------------------------------------------    
-- نهاية الوظيفة        
end 
-- متى تحدث وظيفة الشات 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
-- onPlayerChat = عند تحدث اللاعب في الشات 

Link to comment

مشككورين شبآب .. بس طلعت انا النوب لان حاط يكون التاج على قروب Big.Admin < وادمنيتي على الكونسل

ههههههههههههههههههههه , رحت عدل على القروب وضبط . ض1

تسلمو كلكم .#

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