Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local text = "Overpowered!"
- local mice = {}
- _G["eventNewPlayer"] = function(name)
- mice[name] = {
- despawnTime = 5
- }
- for i=1,100 do
- tfm.exec.bindKeyboard(name, i, true)
- end
- table.foreach({1,2,3,4,5}, function(a) ui.addTextArea(a, ("<B><p align='center'><font face='Freestyle Script' size='120' color='#%x'>\n"..text..""):format(a < 5 and 0 or 0xC2C2DA), name, ({10,0,5,5,5})[a], ({-50,-50,-45,-55,-50})[a], 790, 400, 0, 0, 0.0, true) end)
- system.bindMouse(name, true)
- end
- function eventKeyboard(name, key, down, x, y)
- if key == 27 then
- removeBanner(name)
- end
- end
- function eventMouse(name, x, y)
- if x <= 400 and y <= 800 then
- removeBanner(name)
- end
- end
- function removeBanner(name)
- for i=1,5 do
- ui.removeTextArea(i, name)
- end
- end
- function eventLoop()
- for name,_ in pairs(tfm.get.room.playerList) do
- mice[name].despawnTime = mice[name].despawnTime - 0.5
- if mice[name].despawnTime <= 0 then
- removeBanner(name)
- end
- end
- end
- table.foreach(tfm.get.room.playerList, _G["eventNewPlayer"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement