Mefisto_PL Posted January 25, 2012 Share Posted January 25, 2012 (edited) Hi, how I can add to votemap "%" peoples who wants this map ? Edited January 25, 2012 by Guest Link to comment
Castillo Posted January 25, 2012 Share Posted January 25, 2012 Post your script in pastebin.com, is too long for the Lua/Code tags. Link to comment
FatalTerror Posted January 25, 2012 Share Posted January 25, 2012 It's on race_client.lua For the time played, it's on the line 25: timepassed = dxText:create('0:00:00', screenWidth - 10, screenHeight - 25, false, 'bankgothic', 0.7, 'right'), function updateTime() local tick = getTickCount() local msPassed = tick - g_StartTick if not isPlayerFinished(g_Me) then g_dxGUI.timepassed:text(msToTimeStr(msPassed)) end local timeLeft = g_Duration - msPassed guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then startHurry() end end And for the timeleft, its on the line 34: timeleft = guiCreateLabel(screenWidth/2-108/2, 19, 108, 30, '', false), function updateTime() local tick = getTickCount() local msPassed = tick - g_StartTick if not isPlayerFinished(g_Me) then g_dxGUI.timepassed:text(msToTimeStr(msPassed)) end local timeLeft = g_Duration - msPassed guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then startHurry() end end You have just to change the positions, size, etc. Good luck Edit: Topic edited Link to comment
Mefisto_PL Posted January 25, 2012 Author Share Posted January 25, 2012 Thanks for it dude I think nobody help me , but you made it ^^. But I need help with votemap too Link to comment
Mefisto_PL Posted January 25, 2012 Author Share Posted January 25, 2012 Sorry For Off-Topic but I need this 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