Jump to content

سسؤال #


Recommended Posts

السسلآم عليكم

انا شفت موضوع من قبل بس نسيت اسمهه

المهم كيف اقدر احذف الهكس كود من الادمنيه ؟

يعني لاجيت اصك ميوت او كيك او سلاب

مابي يجي اسمي ملون لا بس ابيها تنشال !

وشكرآ لكم مقدمآ

Link to comment

الله يعطيك العافيةة

لقيته رحت التاريخ ولقيته #

    function aAction ( type, action, admin, player, data, more ) 
        if ( aLogMessages[type] ) then 
            function aStripString ( string ) 
                string = tostring ( string ) 
                string = string.gsub ( string, "$admin", getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") ) 
                string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin )    and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") ) 
                string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") ) 
                string = string.gsub ( string, "$data2", more or "" ) 
                if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ) ) string = string:gsub("#%x%x%x%x%x%x","") end 
                return tostring ( string.gsub ( string, "$data", data or "" ) ) 
            end 
            local node = aLogMessages[type][action] 
            if ( node ) then 
                local r, g, b = node["r"], node["g"], node["b"] 
                if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b ) end 
                if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b ) end 
                if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b ) end 
                if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end 
            end 
        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...