Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMANDS:
- function eventChatCommand(name,command)
- if command=="cheese" then
- tfm.exec.giveCheese(name)
- elseif command=="mort" then
- tfm.exec.killPlayer(name)
- elseif command=="snow" then
- tfm.exec.snow(120, 0)
- elseif command=="new" then
- tfm.exec.newGame("@")
- elseif command=="win" then
- tfm.exec.playerVictory(name)
- elseif command=="score" then
- tfm.exec.setPlayerScore(name, 9999, true)
- elseif command=="meep" then
- tfm.exec.giveMeep(name)
- elseif command=="vamp" then
- tfm.exec.setVampirePlayer(name)
- end
- end
- FLY:
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,38,true,true)
- end
- for name in pairs(tfm.get.room.playerList) do
- for keys, k in pairs({38, 87}) do
- tfm.exec.bindKeyboard(name, k, true, true)
- end
- end
- function eventKeyboard(name,key,down,x,y)
- if key==38 then
- tfm.exec.movePlayer(name,0,0,true,0,-80,false)
- elseif key==87 then
- tfm.exec.movePlayer(name,0,0,true,0,-80,false)
- end
- end
- SHOOT STUFF WITH Z AND X: ( https://www.deviantart.com/ashadasha/art/utility-codes-i-know-so-far-version-350-565241558 )
- for name in pairs(tfm.get.room.playerList) do
- for keys, k in pairs({88, 90}) do
- tfm.exec.bindKeyboard(name, k, true, true)
- end
- end
- function eventKeyboard(name, key, down, x, y)
- if key == 88 then
- tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
- elseif key == 90 then
- tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement