Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adm = {Sagazgamer = true}
- function eventChatCommand(p,c)
- local args={}
- for i in c:gmatch('[^%s]+') do
- table.insert(args,i)
- end
- if args[1]=="np" and adm[p] then
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- if args[2] then
- tfm.exec.newGame(args[2])
- else
- print("<R>O mapa não existe ou não carrega")
- end
- elseif args[1]=="reset" and adm[p] then
- tfm.exec.newGame(tfm.get.room.currentMap)
- end
- end
- for i,command in ipairs({"np","reset"}) do
- system.disableChatCommandDisplay(command)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement