02.07.2014, 14:23
I have create a temporary VIP system. But I want to create a command that shows the number of days left in vip expiry.
I did " gettime() + 86400 " = 1 month
Here's the command
this command need some fixes to get the exact days left in vip expiry.
Can you help ?
I did " gettime() + 86400 " = 1 month
Here's the command
pawn Код:
COMMAND:viptime(playerid, params[])
{
new diff_secs = ( GetPVarInt(playerid, "VIPTime") - gettime() );
new remain_days = floatround( diff_secs / 60 * 60 * 24);
new estring[128];
format(estring, 128, "%d days remaining in your VIP Expiry.", remain_days);
SendClientMessage(playerid, -1, estring);
return 1;
}
Can you help ?



