Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 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(255, 0, 0, 0, 0, 0, progress, "Linear")
  8. else
  9. alpha = interpolateBetween(0, 0, 0, 255, 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. else
  19. scroll = scroll - 2
  20. end
  21. outputDebugString(scroll)
  22. exports.blur:dxDrawBluredRectangle(sx * 0, sy * 750, sx * 2892, sy * 19, tocolor(195, 195, 195, alpha))
  23. dxDrawText(xtext, sx * 1980 + scroll, sy * 1320, sx * 2892, sy * 196, tocolor(225, 225, 225, alpha), 1, infoFont, "center", "center", false, false, true)
  24. elseif renderingdoit == false then
  25. scroll = 100
  26. end
  27. end
  28.  
  29. addEvent("admin:rendering", true)
  30. addEventHandler("admin:rendering", root, function(text)
  31. xtext=text
  32. playSound("sounds/ann.wav")
  33.  
  34. setTimer(function()
  35. renderingdoit = true
  36. tick = getTickCount()
  37. addEventHandler("onClientRender", root, renderingInfo)
  38. end, 3400, 1)
  39.  
  40. setTimer(function()
  41. renderingdoit = false
  42. tick = getTickCount()
  43. end, 39400, 1)
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement