Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. function renderingInfo()
  2.  
  3. local alpha = 0
  4. local progress = (getTickCount() - tick) / 1300
  5.  
  6. if renderingdoit == true then
  7. alpha = interpolateBetween(0, 0, 0, 255, 0, 0, progress, "Linear")
  8. else
  9. alpha = interpolateBetween(255, 0, 0, 0, 0, 0, progress, "Linear")
  10. end
  11. if renderingdoit == false and getTickCount()-tick > 1300 then
  12. removeEventHandler('onClientRender',root,renderingInfo)
  13. tick = getTickCount()
  14. end
  15. if renderingdoit == true then
  16. if scroll == -3000 then
  17. scroll = 100
  18. tick = getTickCount()
  19. renderingdoit = false
  20. else
  21. scroll = scroll - 2
  22. end
  23. outputDebugString(scroll)
  24. exports.blur:dxDrawBluredRectangle(sx * 0, sy * 750, sx * 2892, sy * 19, tocolor(195, 195, 195, alpha))
  25. dxDrawText(xtext, sx * 1980 + scroll, sy * 1320, sx * 2892, sy * 196, tocolor(225, 225, 225, alpha), 1, infoFont, "center", "center", false, false, true)
  26. elseif renderingdoit == false then
  27. scroll = 100
  28. end
  29.  
  30. addEvent("admin:rendering", true)
  31. addEventHandler("admin:rendering", root, function(text)
  32. xtext=text
  33. playSound("sounds/ann.wav")
  34.  
  35. setTimer(function()
  36. renderingdoit = true
  37. tick = getTickCount()
  38. addEventHandler("onClientRender", root, renderingInfo)
  39. end, 3400, 1)
  40.  
  41. setTimer(function()
  42. tick = getTickCount()
  43. renderingdoit = false
  44. end, 39400, 1)
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement