VIP system
#1

I'm not sure about to make this, a vip system that i can set a temporary vip for someone.
for example: i set for a player for 4 days silver vip, if the player offline or online to the server the time i gave for the vip will pass, and it will write it on the INI file of the player, btw i use YINI of ******.
i know that i should use gettime() getdate() functions but i'm not sure how to use these functions.

Код:
INI_WriteInt(File, "DonateRank", PlayerInfo[playerid][pDonateRank]); // define of vip rank
INI_WriteInt(File, "TempVIP", PlayerInfo[playerid][pTempVIP]); // the temp vip write data
Reply
#2

Hello.
Think of this that way:

Player has bought your silver vip, so that he will be able to use it's abilities for 4 days. 4 days equals to 345 600 seconds.

Just make variable which will measure player's time on server (write/read from ini), and check if it exceeds 345 600. If yes, then get the vip away

Greetings.
Reply
#3

Quote:
Originally Posted by LetsOWN[PL]
Посмотреть сообщение
Hello.
Think of this that way:

Player has bought your silver vip, so that he will be able to use it's abilities for 4 days. 4 days equals to 345 600 seconds.

Just make variable which will measure player's time on server (write/read from ini), and check if it exceeds 345 600. If yes, then get the vip away

Greetings.
Yes i have already got it, its counting down only when the player is online to the server.
I asked even when the server itself offline it will keep counting down.
Reply
#4

Read me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)