Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=0
- started=false
- function eventNewPlayer(name)
- if started then
- ui.addTextArea(2,"", name, 0, 32, 800, 25,0xEB1224,0x9E0714,1,true)
- end
- end
- function eventChatCommand(name,cmd)
- if cmd:sub(0,2)=="go" then
- started=true
- i=0
- end
- end
- function eventLoop(currentTime,timeRemaining)
- if started then
- if i <= 800 then
- ui.addTextArea(2,"", name, 0, 32, 800, 25,0xEB1224,0x9E0714,1,true)
- ui.addTextArea(1,"", nil, 0, 32, i, 25,0x7DE11A,0x53A403,1,true)
- i=i+13.33
- elseif i > 800 then
- ui.addTextArea(2,"<font size='16px' color='#000000'><p align='center'>Chargement terminΓ© !</p></font>", nil, 0, 32, 800, 25,0x7DE11A,0x53A403,1,true)
- i=800
- started=false
- end
- end
- end
- for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end
Advertisement
Add Comment
Please, Sign In to add comment