Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps = {"@650592","@4385075"}
- tfm.exec.setGameTime(10)
- function eventNewGame()
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setNameColor(players[math.random(#players)], 0xFF1900)
- system.bindKeyboard(players[math.random(#players)],88,true,true)
- ui.addTextArea(0,'<J><a href="event:pomoc">Pomoc',nick,5,190,0,20,0x1c3c41,0x1c3c41,1)
- tfm.exec.setGameTime(30)
- end
- function eventTextAreaCallback(id,nick,klik)
- if klik=="pomoc" then
- ui.addPopup(0, 0, "Witaj w berku! <br><br>Gdy masz czerwony nick postaraj się przekazać czerwoność innej myszce z białym nickiem.<br>Jeśli masz biały nick, staraj się jak najprędzej uciekać!<br><br>X - gdy masz czerwony nick przekazujesz go za pomocą kliknięcia klawisza przy kimś<br><br><br>Kod : Rohere,Krzysiul,Rkubi<br><br>Pomysł : Rohere,Krzysiul<br><br>",nick, 292, 91, 200, true)
- end
- end
- players = {}
- for nick,player in pairs(tfm.get.room.playerList) do
- table.insert(players,nick)
- end
- function eventKeyboard(nick,key,d,x,y)
- for n,p in pairs(tfm.get.room.playerList) do
- if key==88 and p.x>x-20 and p.x<x+20 and p.y>y-20 and p.y<y+20 and n~=nick then
- system.bindKeyboard(n,88,true,true)
- tfm.exec.setNameColor(n, 0xFF1900)
- table.insert(czer,n)
- table.invert(czer,nick)
- system.bindKeyboard(nick,88,true,false)
- tfm.exec.setNameColor(nick, 0xFFFFFF)
- end
- end
- end
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoScore(true)
- function eventLoop(t,r)
- if r<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setNameColor(all, 0xFFFFFF)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment