SHARE
TWEET

Untitled

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function aAction ( type, action, admin, player, data, more )
  2.     if ( aLogMessages[type] ) then
  3.         function aStripString ( string )
  4.             string = tostring ( string )
  5.             string = string.gsub ( string, "$admin", getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") )
  6.             string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin )    and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") )
  7.             string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x","") )
  8.             string = string.gsub ( string, "$data2", more or "" )
  9.             if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x","") ) end
  10.             return tostring ( string.gsub ( string, "$data", data or "" ) )
  11.         end
  12.         local node = aLogMessages[type][action]
  13.         if ( node ) then
  14.             local r, g, b = node["r"], node["g"], node["b"]
  15.             if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b ) end
  16.             if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b ) end
  17.             if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b ) end
  18.             if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end
  19.         end
  20.     end
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top