06.04.2014, 06:51
pawn Код:
#define IsPlayerVip(%0) (gettime() < pVipExpiry[%0])
#define ExtendPlayerVip(%0,%1) if(pVipExpiry[%0] > gettime()) pVipExpiry[%0] += (86400 * %1); else pVipExpiry[%0] = (gettime() + (86400 * %1))
new pVipExpiry[MAX_PLAYERS];
Use if(IsPlayerVip(playerid)) in your vip commands, it returns 1 if the player is vip or 0 if not.
Don't forget to store the expiry date somewhere, and load / save it.