SA-MP Forums Archive
VIP System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: VIP System (/showthread.php?tid=583045)



VIP System - Scott Zulkifli - 25.07.2015

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,


AW: VIP System - Mencent - 25.07.2015

Hello!

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


- Mencent


Re: VIP System - Scott Zulkifli - 25.07.2015

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


AW: VIP System - Mencent - 25.07.2015

Yes, it's possible.


- Mencent


Re: VIP System - Scott Zulkifli - 25.07.2015

I do not have any idea, can you explain


Re: VIP System - trablon - 25.07.2015

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


Re: VIP System - Scott Zulkifli - 25.07.2015

could give me an overview of script.


Re: VIP System - xVIP3Rx - 25.07.2015

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;