Is Past A Certain date and time
#1

Can someone help me with a function that will check to see if (the time I give) is past the current server time?

For Example:

I want for when a player buys a house, to set that current time in the house saving feature.

The server every hour automatically checks all the houses and if the house is past the current time when it checks, It will automatically sell the house.

I just need the check time script, not the house thing.


Thank You
Reply
#2

https://sampwiki.blast.hk/wiki/Gettime is what you are looking for. If you do not specify the arguments, the function returns an Unix timestamp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)