Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by xXShadowXx
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 ExtendPlayerVip(playerid,days); in your /makevip command.
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.
|
I understand this but what do you mean in
Store the expiry date somewhere?
Where do i store it?