Overkillz Posted August 29, 2014 Share Posted August 29, 2014 Hey guys, Im here again with a problem, I hope u can help me and tell me why this doesn't work ;( ------------------------------------------------------------ ---------------- Hunter Message -------------------------- ------------------------------------------------------------ local sx,sy = guiGetScreenSize() drawing = false function start_drawing() drawing = true removeEventHandler("onClientRender",getRootElement(),draw_message) addEventHandler("onClientRender",getRootElement(),draw_message) setTimer(stop_drawing,5000,1) getTickStart = getTickCount () end function stop_drawing() removeEventHandler("onClientRender",getRootElement(),draw_message) drawing = false end function draw_message() local getTickNow = getTickCount () - getTickStart if getTickNow <= 1000 then alfa = getTickNow/1000 elseif getTickNow >= 4000 then alfa = (5000-getTickNow)/1000 else alfa = 1 end alfa = alfa * alfa * alfa dxDrawColorText("#ff0000Hunter #00ff00Reached",0,sy/3,sx,sy,tocolor(255,255,255,alfa*255),(2.5*sx/1920)*alfa*1.6,"default-bold","center","center",true) end addEvent("onHunterEvent",true) addEventHandler("onHunterEvent",getRootElement(),start_drawing) DebugScript 3: - http://puu.sh/bdbFP/53119d8f26.jpg Regards. Link to comment
Wei Posted August 29, 2014 Share Posted August 29, 2014 dxDrawText("#ff0000Hunter #00ff00Reached",0,sy/3,sx,sy,tocolor(255,255,255,alfa*255),(2.5*sx/1920)*alfa*1.6,"default-bold","center","center",true, false, false, true) Link to comment
Overkillz Posted August 29, 2014 Author Share Posted August 29, 2014 dxDrawText("#ff0000Hunter #00ff00Reached",0,sy/3,sx,sy,tocolor(255,255,255,alfa*255),(2.5*sx/1920)*alfa*1.6,"default-bold","center","center",true, false, false, true) Thanks, it works perfectly <3 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now