Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function renderingInfo()
- local alpha = 0
- local progress = (getTickCount() - tick) / 1300
- if renderingdoit == true then
- alpha = interpolateBetween(255, 0, 0, 0, 0, 0, progress, "Linear")
- else
- alpha = interpolateBetween(0, 0, 0, 255, 0, 0, progress, "Linear")
- end
- if renderingdoit == false and getTickCount()-tick > 1300 then
- removeEventHandler('onClientRender',root,renderingInfo)
- tick = getTickCount()
- end
- if renderingdoit == true then
- if scroll == -3000 then
- scroll = 100
- else
- scroll = scroll - 2
- end
- outputDebugString(scroll)
- exports.blur:dxDrawBluredRectangle(sx * 0, sy * 750, sx * 2892, sy * 19, tocolor(195, 195, 195, alpha))
- dxDrawText(xtext, sx * 1980 + scroll, sy * 1320, sx * 2892, sy * 196, tocolor(225, 225, 225, alpha), 1, infoFont, "center", "center", false, false, true)
- elseif renderingdoit == false then
- scroll = 100
- end
- end
- addEvent("admin:rendering", true)
- addEventHandler("admin:rendering", root, function(text)
- xtext=text
- playSound("sounds/ann.wav")
- setTimer(function()
- renderingdoit = true
- tick = getTickCount()
- addEventHandler("onClientRender", root, renderingInfo)
- end, 3400, 1)
- setTimer(function()
- renderingdoit = false
- tick = getTickCount()
- end, 39400, 1)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement