Sign in to follow this  
Nice_x #Scripting;

[Ajuda] Timer em Minutos

Recommended Posts

Alguem poderia me dar um exemplo, de como eu poderia fazer um timer que iniciaria por minutos exemplo:

/timer 1 -- Iniciaria um tempo de 1 minuto 

e não /timer 60000

Alguem pode me dizer como posso fazer essa conversão?

Share this post


Link to post

Faça um calculo básico.

local timer = 1

function mainFunction ()
        outputChatBox ("Instant text!")
	setTimer ( function()
		outputChatBox ( "5 second delay text!" )
	end, 60000 * timer)
end

-- ( EXEMPLO DA WIKI )

 

  • Thanks 1

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.