Truck Server
#1

how can I make so between 12-7 midnight and morning and morning-midnight so I want something to happen between hours 12 midnight and 7 am..and all day something to give money

PHP код:
if (gettime() > 7
{
//message
printf("qweqeqeqeweq2342");
}
if (
gettime() < 21)
{
//message
printf("AGEffewAA");

Reply
#2

Hello!

Do you mean it like so?
PHP код:
new minute,second,hour;
gettime(hour,minute,second);
if(
<= hour <= 11 && minute <= 59)
{
    
//between 7 and 11 hours in the morning
}
else if(
19 <= hour <= 23 && minute <= 59)
{
    
//between 7 and 11 hours in the evening

Mencent
Reply
#3

no at 12 night midnight till 7 am to be a message and.. day to be normal and so on
Reply
#4

anyone?
Reply
#5

I passed the time I think anyone can help?? like how he did but dosent work..
Reply
#6

30 minutes passed!
Reply
#7

You have up a template from me, they write it so how you like them.
Otherwise, you can ask again here with this code!

Mencent
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)