Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function split(str)
- local t = {}
- for w in str:gmatch("%S+") do table.insert(t,w) end
- return t
- end
- function eventChatCommand(player, mes)
- args = split(mes)
- command = table.remove(args, 1)
- if(player == "Niunzin") then
- if(command == "loadmap") then
- tfm.exec.newGame(args[1])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement