daily pastebin goal
4%
SHARE
TWEET

Improved Update

Boeing747-8 Feb 24th, 2018 129 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  2. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='30'>Welcome.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  3.  
  4. time=0
  5.  
  6. function eventLoop()
  7. time=time+1
  8. if time==10 then
  9. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  10. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>We're preparing updates for you.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  11. elseif time==20 then
  12. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  13. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>These updates will improve security.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  14. elseif time==30 then
  15. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  16. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>Restarting...\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  17. elseif time==35 then
  18. ui.addTextArea(-2,"<br><br><font size='50'><align='center'>"..time.."\n",nil,-900,-900,9000,9000,0x000001,0x000001,1,true)
  19. elseif time==45 then
  20. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  21. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>The updating process has started.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  22. elseif time==55 then
  23. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  24. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>This will only take about 30 seconds.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  25. elseif time==65 then
  26.  
  27. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  28. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>30 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  29. elseif time==75 then
  30.  
  31. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  32. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>25 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  33. elseif time==85 then
  34.  
  35.  
  36. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  37. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>20 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  38. elseif time==95 then
  39.  
  40.  
  41. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  42. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>15 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  43. elseif time==105 then
  44.  
  45.  
  46. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  47. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>10 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  48. elseif time==115 then
  49.  
  50.  
  51. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  52. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>5 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  53. elseif time==125 then
  54.  
  55.  
  56. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  57. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>0 seconds left until updated.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  58.  
  59. elseif time==130 then
  60.  
  61.  
  62. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  63. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>Getting things ready...\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  64. elseif time==160 then
  65.  
  66. ui.removeTextArea(-2,nil)
  67. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  68. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='15'>You are now up to date!\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  69. elseif time==170 then
  70. ui.removeTextArea(0,nil)
  71. ui.removeTextArea(1,nil)
  72. ui.addTextArea(4, "", nil, 4, 27, 11, 384, 0x009ff5, 0x009ff5, 0.7, true)
  73. ui.addTextArea(5, "", nil, 7, 24, 787, 10, 0x009ff5, 0x009ff5, 0.7, true)
  74. ui.addTextArea(6, "", nil, 786, 24, 11, 383, 0x009ff5, 0x009ff5, 0.7, true)
  75. ui.addTextArea(7, "<p align='center'><BV>TFM 2.0 Update", nil, 248, 26, 258, 23, 0x90d0f0, 0x90d0f0, 0.7, true)
  76.  
  77.  
  78.  
  79.  
  80. end
  81. end
  82. system.disableChatCommandDisplay("reupdate",true)
  83. function eventChatCommand(m,c)
  84. if c=="reupdate" then
  85. time=0
  86. ui.addTextArea(0, "", nil, 290, 165, 221, 70, 0x1baaf2, 0xcfcfcf, 1, true)
  87. ui.addTextArea(1, "\n<font face='tahoma'><p align='center'><font size='30'>Welcome.\n\n", nil, 292, 168, 216, 64, 0x36a3d9, 0xffffff, 1, true)
  88.  
  89. end
  90. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top