Posts: 96
Threads: 11
Joined: Feb 2013
Reputation:
0
Hello there, I made a /buypackage command which players can buy VIP packages with it. So i wanted to know how can i make the package last for only 30 days. I mean when the player buys the package, they lose it in 30 days. Just dunno how to make a timer for 30 days, can someone help me please?
Posts: 244
Threads: 55
Joined: Nov 2013
Reputation:
0
Use gettime(); (with no params) to return seconds passed from 1970 and store it to a var1. Then use the same function but do like this: gettime()+2592000 (2592000 seconds are 30 days) and store it to var2. Then if gettime() >= var2, take away package.
Posts: 96
Threads: 11
Joined: Feb 2013
Reputation:
0
Do you have a link of the tutorial?