TFM Room Player List Shake and Notify Script
A Lua script for Transformice, handling player effects and notifications during events in the game room.unknown
lua
9 months ago
2.2 kB
30
Indexable
local cokmesuresi = 5000 -- milisaniye local cokucekoyuncu = "Aliunut#9638" -- oyuncu adı local cokertmemesaji = true -- olmaması için false yap odada 2 kişi varsa sadece sende gözükür local cokertmesuresi,cokertmesuresiacik = 0,false function cokert() for name, _ in pairs(tfm.get.room.playerList) do for i = 1, 10000 do tfm.exec.addShamanObject(212, tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y - 30, 0, 0, 0, false) end end end function eventLoop(CurrentTime,TimeRemaining) if os.time() > cokertmesuresi and cokertmesuresiacik then cokert() if cokertmemesaji then ui.updateTextArea(0,"<p align = 'center'><font color = '#FFFFFF' size = '50'><br><br>ÇÖKTÜ</font></p>",name) end cokertmesuresi,cokertmesuresiacik = 0,false elseif cokertmesuresiacik then for name, _ in pairs(tfm.get.room.playerList) do if name ~= cokucekoyuncu then if cokertmemesaji then ui.addTextArea(0,"<p align = 'center'><font color = '#FFFFFF' size = '50'><br><br>ÇÖKÜYOR ÇIK<br> "..tostring((cokertmesuresi - os.time())/1000).." saniye kaldı!</font></p>",name,0,0,800,400,0x000001,0x000001,0.5,true) end end end end end function eventNewPlayer(name) if name == cokucekoyuncu then cokertmesuresi,cokertmesuresiacik = os.time() + cokmesuresi,true for name, _ in pairs(tfm.get.room.playerList) do if name ~= cokucekoyuncu then if cokertmemesaji then ui.addTextArea(0,"<p align = 'center'><font color = '#FFFFFF' size = '50'><br><br>ÇÖKÜYOR ÇIK</font></p>",name,0,0,800,400,0x000001,0x000001,0.5,true) end end end end end function eventPlayerLeft(name) if name == cokucekoyuncu then if cokertmemesaji then ui.updateTextArea(0,"<p align = 'center'><font color = '#FFFFFF' size = '50'><br><br>Çökertme iptal edildi.</font></p>",name) end end end for name, _ in pairs(tfm.get.room.playerList) do if name == cokucekoyuncu then cokertmesuresi,cokertmesuresiacik = os.time() + cokmesuresi,true for name1,_ in pairs(tfm.get.room.playerList) do if name1~=cokucekoyuncu then ui.addTextArea(0,"<p align='center'><font color='#FFFFFF' size='50'><br><br>ÇÖKÜYOR ÇIK</font></p>",name1,0,0,800,400,0x000001,0x000001,0.5,true) end end end end
Editor is loading...
Leave a Comment