Guest User

Untitled

a guest
Mar 5th, 2021
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local function chatFilter(self,event,msg,source,...)
  2.     -- print("Message: ", msg, "  Source: ", source)
  3.     if list and type(source)=="string" and source~="" and type(list[source])=="table" then
  4.         if event=="CHAT_MSG_WHISPER_INFORM" then
  5.             return false, msg.."  (NOTE: You are ignoring this player!)", source, ...
  6.         elseif event == "CHAT_MSG_WHISPER" then
  7.             SendChatMessage(IgM_SV.message or "You are ignored","WHISPER",nil,source)
  8.         end
  9.         return true
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment