mIRC Home    About    Download    Register    News    Help

Print Thread
Allow command usage on specified times #208309 18/01/09 01:52 PM
Joined: Feb 2007
Posts: 91
S
spermis Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2007
Posts: 91
Hello.
I cant think a way to make a way, that will prevent peoples from using commands. I need that they can use the text command only from 16:00 till 22:00, how to do that?

Re: Allow command usage on specified times [Re: spermis] #208311 18/01/09 02:10 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Code:
if ($time(HH) >= 16) && ($time(HH) < 22)

Re: Allow command usage on specified times [Re: spermis] #208478 21/01/09 02:37 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
if ($time(HH) isnum 16-21) <do stuff>

Re: Allow command usage on specified times [Re: hixxy] #208479 21/01/09 03:40 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Silly hixxy. ;P I thought about doing that an hour or so after I posted, but couldn't be bothered to change my post since I figured he wouldn't see it anymore. wink