Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,40,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==40 then
- tfm.exec.addShamanObject(24,x,y+20)
- end
- end
- function main()
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- time={}
- maps={0,1,2,3,4,5,6,7,8,9,10}
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- main()
- function eventPlayerDied(p)
- tfm.exec.respawnPlayer(p)
- end
- function eventChatCommand(p,cm)
- if cm == [[mort]] then
- tfm.exec.killPlayer(p)
- end
- end
- tfm.exec.setUIMapName("Bufpuf!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement