Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mapa = [[@6287039]]
- function main()
- admin={Sagazgamer=true,Tectoon=true, Theapps=true}
- end
- function eventNewPlayer(name)
- if admin[name] then
- ui.addTextArea(5,"<a href='event:msg'><p align='center'><font size='12px'>Mensagem</font></p></a>", name, 10, 375, 75, 20, 0x000000, 0x324650, 0.5, true)
- admin[name]={
- mod=false,
- sorteador=false
- }
- end
- end
- function eventTextAreaCallback(id, name, callback)
- if callback=="msg" then
- ui.addPopup (9, 2, "Introduza a mensagem a enviar a todos :", name, 200, 180, 300, true)
- ui.addTextArea(5,"<a href='event:msg'><font size='12px'><p align='center'>Mensagem</p></font></a>", name, 10, 375, 75, 20, 0x000000, 0x324650, 0.5, true)
- ui.addTextArea(6,"<a href='event:mod'><font size='14px'><p align='center'>Modération</p></font></a>", name, 200, 265, 90, 20,0xC06F6E,0x324650,0.9,true)
- ui.addTextArea(7,"<a href='event:animation'><font size='14px'><p align='center'>Sorteador</p></font></a>", name, 300, 265, 100, 20,0x000000,0x324650,0.9,true)
- ui.addTextArea(8,"<a href='event:moi'><font size='14px'><p align='center'>Pvd</p></font></a>", name, 410, 265, 90, 20,0x2A6CDD,0x324650,0.9,true)
- end
- if callback=="mod" then
- admin[name].mod=true
- admin[name].animation=false
- end
- if callback=="animation" then
- admin[name].animation=true
- admin[name].mod=false
- end
- if callback=="moi" then
- admin[name].animation=false
- admin[name].mod=false
- end
- end
- function eventPopupAnswer(popupid, name, answer)
- if popupid==9 then
- ui.removeTextArea(6, name)
- ui.removeTextArea(7, name)
- ui.removeTextArea(8, name)
- if not admin[name].animation and not admin[name].mod then
- ui.addTextArea(12,"<font size='15' color='#6CABFF'>"..name.." : "..answer.."</font> <p align='right'><font size='14px'><a</a></font></p>",nil, 5, 25, 790, 40, 1, 1, 0.8, false)
- end
- if admin[name].animation then
- ui.addTextArea(12,"<font size='15' color='#FF9610'>[Sorteador] : "..answer.."</font> <p align='right'><font size='14px'><a</a></font></p>",nil, 5, 25, 790, 40, 1, 1, 0.8, false)
- admin[name].animation=false
- end
- if admin[name].mod then
- ui.addTextArea(12,"<font size='15' color='#ED67EA'>[Moderation] : "..answer.."</font> <p align='right'><font size='14px'><a</a></font></p>",nil, 5,25, 790, 40, 1, 1, 0.8, false)
- admin[name].mod=false
- end
- end
- end
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- function eventPlayerDied(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- tfm.exec.newGame(mapa)
- tfm.exec.setUIMapName("Script de Anuncio")
- main()
- for name in pairs (tfm.get.room.playerList) do eventNewPlayer(name) end
- tfm.exec.addPhysicObject(0, 400, 200, {type=12,color=math.random(0x666666, 0x777777), miceCollision=false, width=800, height=400})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement