Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('<N>Build your self to cheese or sling shot your self there</N>')
- help = [[To play buildingfight you have to build or sling shot your self to cheese and hole
- .And also have to try to kill player from building.click s key to see your score.
- Game made by Ygtyk Date June 13 2014]]
- function eventChatCommand(n,c)
- if c == "help" then
- ui.addTextArea(0,help,n,100,200,nil,nil,nil,nil,0.800)
- end
- end
- maps={5122295,5125066,5125353}
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.disableAutoNewGame(true)
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- tfm.exec.setUIMapName("Buildingfight")
- function eventPlayerWon(name)
- print(name.." has won!")
- end
- for i in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(i,83,true,true)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==83 then
- print("Your score is "..tfm.get.room.playerList[name].score)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement