Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chat = ""
- function Lefut()
- tfm.exec.setUIMapName("#Chat")
- ui.addTextArea(0,chat,nil,7,86,254,235,0x324650,0x212F36,0.8,true)
- ui.addPopup(1,2,"",nil,5,330,258,true)
- tfm.exec.chatMessage("<D>Welcome to in the CHAT^^</D>")
- ui.addTextArea(1,"<font size='20'><D>Készítette: <font color='#80E587'>Weth<font size='14'><font color='#6C77C1'>#9837</font>",nil,510,365,500,200,0x324650,0x212F36,0,true)
- print("<D>\nKészítette: <font color='#80E587'>Weth<font color='#6C77C1'>#9837</font>")
- end
- function teleVan()
- local darab = 0
- for i = 1, #chat do
- local karakter = string.sub(chat,i,i)
- if karakter == "[" then
- darab = darab + 1
- end
- end
- local index = 0
- if darab >= 18 then
- local hanyadik = 0
- for i = 1, #chat do
- local karakter2 = string.sub(chat,i,i)
- if karakter2 == "[" then
- index = i
- hanyadik = hanyadik + 1
- if hanyadik == 2 then
- break
- end
- end
- end
- local ujChat = string.sub(chat,index-24,#chat)
- chat = ujChat
- end
- end
- function Frissites(playerName)
- teleVan()
- ui.updateTextArea(0,chat,nil)
- end
- function eventPopupAnswer(popupID, playerName, answer)
- kiirando = ""
- if (popupID == 1) and (answer ~= "") and (#answer <= 35) then
- kiirando = "<font color = '#009D9D'>["..playerName.."] <font color = '#C2C2DA'>"..answer
- if chat == "" then
- chat = chat..kiirando
- else
- chat = chat.."\n"..kiirando
- end
- Frissites()
- ui.addPopup(1,2,"",playerName,5,330,258,true)
- end
- if answer == "" then
- ui.addPopup(1,2,"",playerName,5,330,258,true)
- end
- end
- function eventNewPlayer(playerName)
- tfm.exec.respawnPlayer(playerName)
- tfm.exec.setUIMapName("#Chat")
- ui.addTextArea(0,chat,nil,7,86,254,235,0x324650,0x212F36,0.8,true)
- ui.addPopup(1,2,"",nil,5,330,258,true)
- tfm.exec.chatMessage("<D>Welcome to in the CHAT^^</D>")
- ui.addTextArea(1,"<font size='20'><D>Készítette: <font color='#80E587'>Weth<font size='14'><font color='#6C77C1'>#9837</font>",nil,510,365,500,200,0x324650,0x212F36,0,true)
- print("<D>\nKészítette: <font color='#80E587'>Weth<font color='#6C77C1'>#9837</font>")
- end
- Lefut()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement