Search the Community
Showing results for tags 'how to fade out dx?'.
-
Hello Friends, I need your help.. I have this random chat, and I want the chat to disappear in slow motion. interpolateBetween Help me please How to fade out DX? ---Client setElementData (localPlayer,"SXPadMensajes",true) function removeColorCoding( name ) return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end addCommandHandler ("chat", function () if isTimer (ReactivacionTimer) then killTimer (ReactivacionTimer) end if getElementData (localPlayer,"SXPadMensajes") == true then addGuiText ("Chat Off",255,255,255) addGuiText ("Chat of for 15min",255,255,255) setElementData (localPlayer,"SXPadMensajes",false) ReactivacionTimer = setTimer (function () setElementData (localPlayer,"SXPadMensajes",true) end, 600000, 1) else setElementData (localPlayer,"SXPadMensajes",true) addGuiText ("Chat On.",255,255,255) end end) function addGuiText(text,c1,c2,c3) if getElementData (localPlayer,"SXPadMensajes") == true then outputSGuiText(text,c1,c2,c3) if not isTimer (removeall) then removeall = setTimer (epic, 10000, 1) else killTimer (removeall) removeall = setTimer (epic, 8000, 1) end end end addEvent("callOutputGuiText",true) addEventHandler("callOutputGuiText",root, addGuiText ) x,y = guiGetScreenSize() gui1 = guiCreateLabel(x,0,0,0,"",false) gui2 = guiCreateLabel(x,0,0,0,"",false) gui3 = guiCreateLabel(x,0,0,0,"",false) gui4 = guiCreateLabel(x,0,0,0,"",false) gui5 = guiCreateLabel(x,0,0,0,"",false) guiSetVisible(gui1,false) guiSetVisible(gui2,false) guiSetVisible(gui3,false) guiSetVisible(gui4,false) guiSetVisible(gui5,false) guic1 = guiCreateLabel(x,0,0,0,"-65536",false) guic2 = guiCreateLabel(x,0,0,0,"-65536",false) guic3 = guiCreateLabel(x,0,0,0,"-65536",false) guic4 = guiCreateLabel(x,0,0,0,"-65536",false) guic5 = guiCreateLabel(x,0,0,0,"-65536",false) guiSetVisible(guic1,false) guiSetVisible(guic2,false) guiSetVisible(guic3,false) guiSetVisible(guic4,false) guiSetVisible(guic5,false) guit1 = guiCreateLabel(x,0,0,0,"10000000",false) guit2 = guiCreateLabel(x,0,0,0,"10000000",false) guit3 = guiCreateLabel(x,0,0,0,"10000000",false) guit4 = guiCreateLabel(x,0,0,0,"10000000",false) guit5 = guiCreateLabel(x,0,0,0,"10000000",false) guiSetVisible(guit1,false) guiSetVisible(guit2,false) guiSetVisible(guit3,false) guiSetVisible(guit4,false) guiSetVisible(guit5,false) function drawit() text1 = guiGetText(gui1) text2 = guiGetText(gui2) text3 = guiGetText(gui3) text4 = guiGetText(gui4) text5 = guiGetText(gui5) color1 = guiGetText(guic1) color2 = guiGetText(guic2) color3 = guiGetText(guic3) color4 = guiGetText(guic4) color5 = guiGetText(guic5) a = 0.02 dx5 = dxDrawText(removeColorCoding(text5), (x * 0.0078) - 1, (y * 0.4367) - 1, (x * 0.8930) - 1, (y * 0.4633) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx5 = dxDrawText(removeColorCoding(text5), (x * 0.0078) + 1, (y * 0.4367) - 1, (x * 0.8930) + 1, (y * 0.4633) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx5 = dxDrawText(removeColorCoding(text5), (x * 0.0078) - 1, (y * 0.4367) + 1, (x * 0.8930) - 1, (y * 0.4633) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx5 = dxDrawText(removeColorCoding(text5), (x * 0.0078) + 1, (y * 0.4367) + 1, (x * 0.8930) + 1, (y * 0.4633) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx5 = dxDrawText(text5, x * 0.0078, y * 0.4367, x * 0.8930, y * 0.4633, tonumber(color5), 1, "default-bold", "left", "top", false, false, false, true, false) dx4 = dxDrawText(removeColorCoding(text4), (x * 0.0078) - 1, (y * 0.4633) - 1, (x * 0.8930) - 1, (y * 0.4900) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx4 = dxDrawText(removeColorCoding(text4), (x * 0.0078) + 1, (y * 0.4633) - 1, (x * 0.8930) + 1, (y * 0.4900) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx4 = dxDrawText(removeColorCoding(text4), (x * 0.0078) - 1, (y * 0.4633) + 1, (x * 0.8930) - 1, (y * 0.4900) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx4 = dxDrawText(removeColorCoding(text4), (x * 0.0078) + 1, (y * 0.4633) + 1, (x * 0.8930) + 1, (y * 0.4900) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx4 = dxDrawText(text4, x * 0.0078, y * 0.4633, x * 0.8930, y * 0.4900, tonumber(color4), 1, "default-bold", "left", "top", false, false, false, true, false) dx3 = dxDrawText(removeColorCoding(text3), (x * 0.0078) - 1, (y * 0.4900) - 1, (x * 0.8930) - 1, (y * 0.5167) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx3 = dxDrawText(removeColorCoding(text3), (x * 0.0078) + 1, (y * 0.4900) - 1, (x * 0.8930) + 1, (y * 0.5167) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx3 = dxDrawText(removeColorCoding(text3), (x * 0.0078) - 1, (y * 0.4900) + 1, (x * 0.8930) - 1, (y * 0.5167) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx3 = dxDrawText(removeColorCoding(text3), (x * 0.0078) + 1, (y * 0.4900) + 1, (x * 0.8930) + 1, (y * 0.5167) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx3 = dxDrawText(text3, x * 0.0078, y * 0.4900, x * 0.8930, y * 0.5167, tonumber(color3), 1, "default-bold", "left", "top", false, false, false, true, false) dx2 = dxDrawText(removeColorCoding(text2), (x * 0.0078) - 1, (y * 0.5167) - 1, (x * 0.8930) - 1, (y * 0.5433) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx2 = dxDrawText(removeColorCoding(text2), (x * 0.0078) + 1, (y * 0.5167) - 1, (x * 0.8930) + 1, (y * 0.5433) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx2 = dxDrawText(removeColorCoding(text2), (x * 0.0078) - 1, (y * 0.5167) + 1, (x * 0.8930) - 1, (y * 0.5433) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx2 = dxDrawText(removeColorCoding(text2), (x * 0.0078) + 1, (y * 0.5167) + 1, (x * 0.8930) + 1, (y * 0.5433) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx2 = dxDrawText(text2, x * 0.0078, y * 0.5167, x * 0.8930, y * 0.5433, tonumber(color2), 1, "default-bold", "left", "top", false, false, false, true, false) dx1 = dxDrawText(removeColorCoding(text1), (x * 0.0078) - 1, (y * 0.5433) - 1, (x * 0.8930) - 1, (y * 0.5700) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx1 = dxDrawText(removeColorCoding(text1), (x * 0.0078) + 1, (y * 0.5433) - 1, (x * 0.8930) + 1, (y * 0.5700) - 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx1 = dxDrawText(removeColorCoding(text1), (x * 0.0078) - 1, (y * 0.5433) + 1, (x * 0.8930) - 1, (y * 0.5700) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx1 = dxDrawText(removeColorCoding(text1), (x * 0.0078) + 1, (y * 0.5433) + 1, (x * 0.8930) + 1, (y * 0.5700) + 1, tocolor(0, 0, 0, 255), 1, "default-bold", "left", "top", false, false, false, true, false) dx1 = dxDrawText(text1, x * 0.0078, y * 0.5433, x * 0.8930, y * 0.5700, tonumber(color1), 1, "default-bold", "left", "top", false, false, false, true, false) end addEventHandler("onClientRender",root,drawit) function outputSGuiText(text,c1,c2,c3) text1 = guiGetText(gui1) text2 = guiGetText(gui2) text3 = guiGetText(gui3) text4 = guiGetText(gui4) guiSetText(gui2,text1) guiSetText(gui3,text2) guiSetText(gui4,text3) guiSetText(gui5,text4) -- textc1 = guiGetText(guic1) textc2 = guiGetText(guic2) textc3 = guiGetText(guic3) textc4 = guiGetText(guic4) guiSetText(guic2,textc1) guiSetText(guic3,textc2) guiSetText(guic4,textc3) guiSetText(guic5,textc4) -- guiSetText(gui1,text) c1,c2,c3 = tonumber(c1),tonumber(c2),tonumber(c3) color = tocolor(c1,c2,c3) guiSetText(guic1,color) end function outputGuiText(text,c1,c2,c3) text1 = guiGetText(gui1) text2 = guiGetText(gui2) text3 = guiGetText(gui3) text4 = guiGetText(gui4) guiSetText(gui2,text1) guiSetText(gui3,text2) guiSetText(gui4,text3) guiSetText(gui5,text4) -- textt1 = guiGetText(guit1) textt2 = guiGetText(guit2) textt3 = guiGetText(guit3) textt4 = guiGetText(guit4) guiSetText(guic2,textt1) guiSetText(guic3,textt2) guiSetText(guic4,textt3) guiSetText(guic5,textt4) guiSetText(guit1,"15") -- textc1 = guiGetText(guic1) textc2 = guiGetText(guic2) textc3 = guiGetText(guic3) textc4 = guiGetText(guic4) guiSetText(guic2,textc1) guiSetText(guic3,textc2) guiSetText(guic4,textc3) guiSetText(guic5,textc4) -- c1,c2,c3 = tonumber(c1),tonumber(c2),tonumber(c3) color = tocolor(c1,c2,c3) guiSetText(guic1,color) return "true: added text '"..text.."'" end function epic() text1 = guiGetText(guic1) text2 = guiGetText(guic2) text3 = guiGetText(guic3) text4 = guiGetText(guic4) text5 = guiGetText(guic5) guiSetText(gui1,tostring(tonumber(text1)-5)) guiSetText(gui2,tostring(tonumber(text2)-4)) guiSetText(gui3,tostring(tonumber(text3)-3)) guiSetText(gui4,tostring(tonumber(text4)-2)) guiSetText(gui5,tostring(tonumber(text5)-1)) if tonumber(text1) <= 4 then guiSetText(gui1,"") end if tonumber(text2) <= 3 then guiSetText(gui2,"") end if tonumber(text3) <= 2 then guiSetText(gui3,"") end if tonumber(text4) <= 1 then guiSetText(gui4,"") end if tonumber(text5) <= 0 then guiSetText(gui5,"") end end
