Jump to content

Set timeleft


Memory

Recommended Posts

I Dont Know But Maybe This One Can Help U

in race_client.lua

  
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 
  

Edit : Anyway u can make the server side for check the hunter and trigger client with this :

  
  guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) -- need edit 
  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...