Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- system.disableChatCommandDisplay(true)
- tfm.exec.setNameColor("Clowfish", 5143)
- function eventNewGame()
- tfm.exec.setUIMapName("Вампирская")
- tfm.exec.setUIShamanName("Шаман")
- tfm.exec.setGameTime(60)
- end
- function eventChatCommand(playerName, com)
- if com == 'help' then
- ui.addPopup(1,0,"<font size='30'color='#14FF00'>Добро пожаловать на игру с вампирами!</font><br />Кто <font size='20'color='#FF0000'>вампир</font>тот может летать<br /><font size='20'color='#14FF00'>.</font>",playerName,100,100,400)
- end
- end
- local auth = {Arlvaro= true, Othername = true}
- function map(player, code)
- if auth[player] then
- tfm.exec.newGame(code)
- end
- end
- function con (player)
- if com == 'off' then
- elseif auth[player] then
- system.exit()
- end
- end
- print("<ROSE>by Clowfish")
- function eventPlayerGetCheese(playerName)
- tfm.exec.setVampirePlayer(playerName)
- ui.addPopup(1,0,"Ты вампир, поймай всех! Летать : SHIFT",playerName,5,25,125)
- end
- --Hello
- function eventNewPlayer(playerName)
- ui.addPopup(1,0,"Hello!",playerName,100,100,125)
- end
- --Fly
- function eventNewPlayer(playername)
- for i,key in ipairs({16,69}) do
- tfm.exec.bindKeyboard(playername,key,true,true)
- end
- end
- tfm.exec.newGame(1)
- maps = {"1", "2", "@57", "@23", "@89", "@37", "@71", "@130", "@59", "@76", "@645288", "@564033", "@238791", "@261959", "30", "@420001", "@164931", "100", "@2960917", "@2971843", "@2975039", "@197442", "@525684", "@2319756", "@301206", "@3605678", "@3008618", "@371072", "@1957536", "@1107804", "@660950", "@3574339", "@1764989", "@3089527", "@520258", "@553000", "@2372033", "@421576", "@304325", "74", "@1222509"}
- function eventLoop(t1,t2)
- if t2 < 1 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- for playerName,player in pairs(tfm.get.room.playerList) do
- if player.isVampire then
- local y = player.y
- local x = player.x
- if x-40 < 100 and x+40 > 100 and y-40 < 100 and y+40 > 100 then
- tfm.exec.setPlayerScore(playerName, 1, true)
- tfm.exec.setGameTime(3,false)
- ui.addPopup(1,0, playerName .." +1 очко!",playerName,100,100,200)
- tfm.exec.killPlayer(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- end
- end
- end
- function eventKeyboard(playername,key,down,x,y)
- if tfm.get.room.playerList[playername].isVampire then
- if key==16 or key==69 then
- tfm.exec.movePlayer(playername,0,0,true,0,-50,true)
- end
- end
- end
- for playername,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(playername)
- end
- function eventKeyboard(playername,key,down,x,y)
- if tfm.get.room.playerList[playername].isVampire then
- if key==16 or key==69 then
- tfm.exec.movePlayer(playername,0,0,true,0,-50,true)
- end
- end
- end
- for playername,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(playername)
- end
Advertisement
Add Comment
Please, Sign In to add comment