kusanagy

WorldChannel AmdBase

Feb 11th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. -- I think these links came from psykko and others I found over time . just kewl little tweeks to customize your world
  2. local WorldChannelName = "|cff00ff00World Channel|r ";
  3.  
  4. --example   VIP[player:GetPremiumType()]
  5. --example   Gmrank[player:GetGMRank()]
  6. --example   Class[player:GetClass()]
  7.  
  8. function ChatSystem(event, player, msg, type, lang, channel)
  9.     if(channel==1)then
  10.         local t = table.concat{WorldChannelName, "[","|Hplayer:", player:GetName(),  "|h", player:GetName(), "|h", "]|r: |cff00ff00", msg};
  11.         SendWorldMessage(t)
  12.     return false;
  13.     end
  14. end
  15.  
  16. RegisterPlayerEvent(22, ChatSystem)
  17. --RegisterServerHook(18, ChatSystem);
  18. --RegisterServerHook(4, function(_, player) RCD[player:GetGUIDLow()] = 0; end);
Advertisement
Add Comment
Please, Sign In to add comment