02.07.2012, 17:05
The unix timestamp (always in seconds) goes from 1970, so lets calculate the years from the seconds
1343821147 / 60 ~ 22397019 minutes
22397019 / 60 ~ 373284 hours
373284 / 24 ~ 15553 days
15553 / 7 ~ 2222 weeks
2222 / 52 ~ 42,7 years
1970 + 42,7 = 2012,7 (not fully accurate)
1343821147 / 60 ~ 22397019 minutes
22397019 / 60 ~ 373284 hours
373284 / 24 ~ 15553 days
15553 / 7 ~ 2222 weeks
2222 / 52 ~ 42,7 years
1970 + 42,7 = 2012,7 (not fully accurate)
pawn Код:
//
if(gettime() > Player[playerid][VipExpiredTime] && Player[playerid][VipRank] != 0)
{
SendClientMessage(playerid, RED, "Your VIP has expired to by it again go to www.DBullet-Gaming.tk");
Player[playerid][VipRank] = Player[playerid][VipExpiredTime] = 0;
}