Jump to content

I can't freeze time to 12:00 Help pls!


Recommended Posts

Hello!

This script's idea was, when I type command "t12" then it make time freezed to 12:00, but it won't work.

function setTimeAndNotify( 12, 00 ) 
    setTime ( 12, 00 ) 
    local notifyMessage = string.format("Time changed to %12d:%00d!", hour, minute) 
    outputChatBox ( notifyMessage ) 
end 
addCommandHandler ("t12") 

Please help me! Thank you!

Link to comment
  
addCommandHandler("t12",function() 
    setTime(12,0); 
    outputChatBox("Time changed to 12:00!",root); 
end); 
  

Still wouldn't freeze it though, put setMinuteDuration with some big value in it and it will look frozen. Btw. no need for semicolons.

Can someone show me how to add setMinuteDuration to this script? (Because I don't have skills :| )

Link to comment
  • 4 months later...

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...