Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: Lua  |  size: 0.58 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. addEventHandler("onClientRender",root,
  2.     function displayTimer()
  3.   if ( isTimer ( timer ) ) then
  4.    local timeLeft = ( getTimerDetails ( timer ) / 1000 )
  5.    dxDrawText("To leave this area!",557.0,318.0,872.0,368.0,tocolor(255,0,0,255),2.0,"default","left","top",false,false,false)
  6.    dxDrawText("10",630.0,277.0,690.0,324.0,tocolor(255,0,0,255),3.0,"default","left","top",false,false,false)
  7.    dxDrawText("You have: ".. tostring ( timeLeft ),546.0,224.0,725.0,271.0,tocolor(255,0,0,255),4.0,"default","left","top",false,false,false)
  8.   end
  9.     end
  10. )
  11.  
  12. setTimer ( displayTimer, 10000, 1 )