31.01.2014, 04:24
Quote:
I kinda got what you said but it'd be better if you explain in a bit different way, maybe an example.
Thanks. |
pawn Код:
if(timestamp() >= GetPVarInt(playerid,"VIPExpiration"))
{
SetPVarInt(playerid, "VIP", 0);
SendClientMessage(playerid, 0xFF0000FF, "Your VIP time has expired.");
}
Whenever you make the player a VIP LEVEL
pawn Код:
SetPVarInt(playerid,"VIPExpiration", timestamp()+2592000); //2592000 seconds means 30 days
3600 Seconds - 1 Hour
86400 Seconds - 1 Day
604800 Seconds - 1 Week (7 days)
2592000 Seconds - 1 Month (30 days)
31536000 Seconds - 1 Year (365 days)