Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAfkDeath()
- tfm.exec.disableAutoNewGame()
- maps, data = {7287025}, {}
- reset_timeToShoot=function(name) data[name].timeToShoot=os.time(); end
- function eventKeyboard(name,key,down,x,y)
- local shoot = (data[name].timeToShoot < os.time()-1200 and (key == 69 and true or false) or false)
- local id = (not tfm.get.room.playerList[name].isDead and (shoot and tfm.exec.addShamanObject(35, x + (tfm.get.room.playerList[name].isFacingRight and 10 or -10), y, 0,tfm.get.room.playerList[name].isFacingRight and 20 or -20) or nil) or nil)
- local a = (id == nil and nil or reset_timeToShoot(name))
- end
- function eventNewPlayer(name)
- data[name] = (not data[name] and {
- timeToShoot = 0,
- } or data[name])
- system.bindKeyboard(name,69,true) tfm.exec.respawnPlayer(name)
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- tfm.exec.newGame(maps[math.random(#maps)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement