Jump to content

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


saef

Recommended Posts

-- Client Side 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) 
        GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) 
        GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") 
        GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22")     
        guiSetVisible (GUIEditor.window[1] , false) 
    end 
) 
  
 bindKey("F6", "down", 
function (   ) 
    if guiGetVisible (GUIEditor.window[1] ) then   
       guiSetVisible (GUIEditor.window[1] , false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1] , true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
 ) 
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    local Serial = guiGetText ( GUIEditor.edit[2] ) 
    local Tag = guiGetText ( GUIEditor.edit[1] ) 
   if ( source == GUIEditor.button[2]  ) then 
     if ( string.len ( Serial ) == 32 ) then 
       local player_ = getPlayerFromSerial ( Serial ) 
       if ( player_ ) then 
           setSerialData ( Serial, "TagState", "Enable" ) 
           setSerialData ( Serial, "playerTag",Tag ) 
                          end 
                    end 
       else 
          if ( source == GUIEditor.button[1] ) then 
           setSerialData ( Serial, "TagState", "Disable" ) 
                     end 
  end 
end ) 
  
function getPlayerFromSerial ( serial ) 
    for index, player in ipairs ( getElementsByType ( "player" ) ) do 
        if ( getPlayerSerial ( player ) == serial ) then 
            return player 
        end 
    end 
    return false 
end 
  
  
function setSerialData(serial,key,value) 
 if( value and type(serial) == "string") then 
  setElementData(root,serial.."&"..key,value) 
  end 
end 
  
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

-- Server Side 
  
  
addEventHandler ( "onPlayerChat", root, function ( msg ) 
   if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then 
   cancelEvent (   ) 
   outputChatBox (" ( "..getSerialData ( getPlayerSerial ( source ), "playerTag" ).." ) "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) 
       end 
end ) 
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
Link to comment

setSerialData أعتقد أن الوظيفة

تحط الدآتآ للسيريآل حتى ولو صآحب السيريآل مآهو موجود ؟ صحيح ؟

-- Client Side 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) 
        GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) 
        GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") 
        GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22")     
        guiSetVisible (GUIEditor.window[1] , false) 
    end 
) 
  
 bindKey("F6", "down", function (   ) 
    if guiGetVisible (GUIEditor.window[1] ) then   
       guiSetVisible (GUIEditor.window[1] , false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1] , true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
           end 
    end 
 ) 
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    local Serial = guiGetText ( GUIEditor.edit[2] ) 
    local Tag = guiGetText ( GUIEditor.edit[1] ) 
   if ( source == GUIEditor.button[2]  ) then 
     if ( string.len ( Serial ) == 32 ) then 
     setSerialData ( Serial, "TagState", "Enable" ) 
     setSerialData ( Serial, "playerTag",Tag ) 
                    end 
       else 
          if ( source == GUIEditor.button[1] ) then 
           setSerialData ( Serial, "TagState", "Disable" ) 
                     end 
              end 
end ) 
  
function setSerialData(serial,key,value) 
 if( value and type(serial) == "string") then 
  setElementData(root,serial.."&"..key,value) 
  end 
end 

-- Server Side 
  
addEventHandler ( "onPlayerChat", root, function ( msg ) 
   if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then 
   cancelEvent (   ) 
   outputChatBox (" ( "..getSerialData ( getPlayerSerial ( source ), "playerTag" ).." ) "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) 
       end 
end ) 
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 
Link to comment
setSerialData أعتقد أن الوظيفة

تحط الدآتآ للسيريآل حتى ولو صآحب السيريآل مآهو موجود ؟ صحيح ؟

-- Client Side 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) 
        GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) 
        GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") 
        GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22")     
        guiSetVisible (GUIEditor.window[1] , false) 
    end 
) 
  
 bindKey("F6", "down", function (   ) 
    if guiGetVisible (GUIEditor.window[1] ) then   
       guiSetVisible (GUIEditor.window[1] , false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1] , true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
           end 
    end 
 ) 
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    local Serial = guiGetText ( GUIEditor.edit[2] ) 
    local Tag = guiGetText ( GUIEditor.edit[1] ) 
   if ( source == GUIEditor.button[2]  ) then 
     if ( string.len ( Serial ) == 32 ) then 
     setSerialData ( Serial, "TagState", "Enable" ) 
     setSerialData ( Serial, "playerTag",Tag ) 
                    end 
       else 
          if ( source == GUIEditor.button[1] ) then 
           setSerialData ( Serial, "TagState", "Disable" ) 
                     end 
              end 
end ) 
  
function setSerialData(serial,key,value) 
 if( value and type(serial) == "string") then 
  setElementData(root,serial.."&"..key,value) 
  end 
end 

-- Server Side 
  
addEventHandler ( "onPlayerChat", root, function ( msg ) 
   if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then 
   cancelEvent (   ) 
   outputChatBox (" ( "..getSerialData ( getPlayerSerial ( source ), "playerTag" ).." ) "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) 
       end 
end ) 
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

الله يعطيك العآفيهههههء وتلم ايدك تعبانك معنا والله اسف حبي

بس ممكن اخر شيء بسئلك فيه

الان انا مسوووي تاج لي الاسل طيب لو جا لعب اخذ رتبه و ويت له تاج يجي له تآجين تاج التربه و تاجه كيف اخليه على تاجه

^____^

Link to comment

الله يعطيك العآفيهههههء وتلم ايدك تعبانك معنا والله اسف حبي

بس ممكن اخر شيء بسئلك فيه

الان انا مسوووي تاج لي الاسل طيب لو جا لعب اخذ رتبه و ويت له تاج يجي له تآجين تاج التربه و تاجه كيف اخليه على تاجه

^____^

بالتآج حقك سوي تحقق أن معه الدآتآ الي آسمها Serial

اذا معه الدآتآ رجع الوظيفة للنهآية

getSerialData 

Link to comment

الله يعطيك العآفيهههههء وتلم ايدك تعبانك معنا والله اسف حبي

بس ممكن اخر شيء بسئلك فيه

الان انا مسوووي تاج لي الاسل طيب لو جا لعب اخذ رتبه و ويت له تاج يجي له تآجين تاج التربه و تاجه كيف اخليه على تاجه

^____^

بالتآج حقك سوي تحقق أن معه الدآتآ الي آسمها Serial

اذا معه الدآتآ رجع الوظيفة للنهآية

getSerialData 

^_^ كيف يعني ترى م فهمت ي سفآحء

Link to comment
يعني أنت موب مركب تآج أدمن ؟ ويكرر ؟

مستحيل يكرر لأني مسوي كانسل ايفينت

تأكد أن مافي سكربت يسوي ايفينت الكتابة بالشآت ؟

function chatbox( text, type) 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. 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) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  

Link to comment

function chatbox( text, type) 
       if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF  ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ]   x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ]    x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099ff* [ مرشح للأدمنية ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ]   x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) 
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* [#660000 Console#669999 ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ play ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ]    x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [نائب صاحب السيرفر] " .. 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) 
  
function s3d() 
    outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
  
 function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
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...