timer like 2 weeks or 1 month ?? [ HOW ? ]
#1

Recently, I added free vip at my server, I want it to work only 1 month. How? I guess its timer. Please give me some codes!

thanks
Reply
#2

Okay, I'll explain this to you. First you need to save the date witch the player has registered in their respective user file, then in OnPlayerUpdate (w/e) add a function where it checks if a month (w/e) has passed, if so then remove the player's VIP status.

Usefull link:
https://sampwiki.blast.hk/wiki/Getdate
Reply
#3

Read this tutorial, its about Unix Timestamp: How to: Unix Timestamp
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)