Countdown timer for Derma

How would I create a countdown timer, and make it appear on a derma panel?

Basic overview is, I want to make a timer, so a player has to wait a certain amount of seconds to respawn, and after that time has passed, a DButton appears which, when pressed, lets them spawn.

If you’ve played Bad Company 2, you’ll get what im talking about straight away.

**[G.CurTime

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=G.CurTime)**

Use that

How would I use that if I wanted to do a timer (sorry don’t know much lua, just wanted to know is all )

[editline]09:37PM[/editline]

Anyone?

How would I use curtime in a timer like that?

Dude learn lua before spam making threads

runs YourFunction after 5 seconds
[lua]timer.Simple( 5, YourFunction )[/lua]
or you could do timer.Create()for a much more detailed timer.

Obviously you are the god of everything, and you have a whole colony of inbreds behind your back.

Just like to point out that this is the newbie questions section so it makes sense to ask questions here that you just don’t get other wise you’ll never be able to do anything.

Thats right. I dont have any idea how to make a timer, but I would be glad to do.

Also, to anyone reading this,I know you may have seen my steam profile only has L4D and L4D2, but that is because I have 2 steam profiles, one that is VAC banned, which is why I created the other.

Here:
Garrysmod Profile: http://www.steamcalculator.com/id/storewars123 (VAC Banned )
Left 4 Dead Profile: http://www.steamcalculator.com/id/storewars456

Yeah dude pay no attention to King Flawless, he’s a jackass on my threads also.

“Agree”