Auto cmd in days
#4

I would do it like this:
pawn Код:
new VIPExpire[MAX_PLAYERS];

// under command for giving a vip status
VIPExpire[playerid] = gettime() + days * 86400; // 86400 seconds = one day
This would use unix timestamps to get the given date (search the forums if you don't know what those are) and you could check if gettime() is greater than the date under OnPlayerConnect or some timer with fixed interval like few minutes or something.
Reply


Messages In This Thread
Auto cmd in days - by Ax3l123 - 20.03.2016, 16:39
Re: Auto cmd in days - by IceBilizard - 20.03.2016, 16:54
Re: Auto cmd in days - by $Marco$ - 20.03.2016, 17:21
Re: Auto cmd in days - by dominik523 - 20.03.2016, 18:06
Re: Auto cmd in days - by SickAttack - 20.03.2016, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)