VIP System
#1

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,
Reply
#2

Hello!

You can work with gettime();.
Try this. If you need help you can feel free to ask.


- Mencent
Reply
#3

if it was possible even though the player is offline,
I think that using getdate
Reply
#4

Yes, it's possible.


- Mencent
Reply
#5

I do not have any idea, can you explain
Reply
#6

Control the time in your server and use player's time checker variable in your onplayerupdate(or your function for your player update.)
Reply
#7

could give me an overview of script.
Reply
#8

pawn Код:
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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)