Guest User

Untitled

a guest
Dec 17th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. --[==[
  2. GameMaster Raid Announce by Salja
  3. ]==]
  4.  
  5. local ChatPrefix = "#announce"
  6. local worldPlayers = GetPlayersInWorld(TEAM_NEUTRAL, false)
  7.  
  8. if (ChatPrefix:sub(-1) ~= " ") then
  9. ChatPrefix = ChatPrefix.." ";
  10. end
  11.  
  12. local function ChatSystem(event, player, msg, _, lang)
  13. if (msg:sub(1, ChatPrefix:len()) == ChatPrefix) then
  14. if player:IsGM() then
  15. local t = table.concat({"|cff7DFF00[", "|Hplayer:", player:GetName(), "|h", player:GetName(), "]|h:|r ", msg:sub(ChatPrefix:len()+1), ""});
  16. player:SendChatMessageToPlayer(40, 0, t, worldPlayers)
  17. else
  18. PrintInfo("Not GameMaster or GameMaster modus off")
  19. end
  20. end
  21. end
  22.  
  23. RegisterPlayerEvent(18, ChatSystem)
Advertisement
Add Comment
Please, Sign In to add comment