Advertisement
KananGamer

[TFM-LUA] Command !map

Oct 21st, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --[[
  2.     Author: Nettoork#0000
  3. ]]--
  4.  
  5. split = function(t, s)
  6.     local a={}
  7.     for i in string.gmatch(t, "[^" .. (s or "%s") .. "]+") do
  8.         a[#a + 1] = i
  9.     end
  10.     return a
  11. end
  12.  
  13. eventChatCommand = function(name, command)
  14.     local arg = split(command, ' ')
  15.     if arg[1] == 'map' and arg[2] then
  16.         tfm.exec.newGame(arg[2])
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement