25.07.2015, 11:49
I want to make a vip system with an expiration date, 1 month, 6 months, 1 year, and permanent. is there any an idea to make the use of real time,
new VIPExprationdate[MAX_PLAYERS];
//When you wanna make him a VIP
new premiumtime = 3600;//3600 seconds = 1 hour
VIPExprationdate[playerid] = gettime() + premiumtime;
//When you want to check if he's VIP
if(VIPExprationdate[playerid] - gettime() > 0) //do something
//when you want to remove his premium
VIPExprationdate[playerid] = 0;