Vip 7 days
#1

why my server . voucher 7 day GVip


7 days vip not lost after 7 days, where is the error when i check there was gettime () .

Look below

Код:
if(GetPVarInt(playerid, "voucherdialog") == 6) // 7 Days Gold VIP
			{
				if(PlayerInfo[playerid][pDonateRank] >= 3)
				{
					DeletePVar(playerid, "voucherdialog");
					DeletePVar(playerid, "WhoIsThis");
					return SendClientMessageEx(playerid, COLOR_GRAD2, "Your VIP Level is already set to Gold+");
				}
				PlayerInfo[playerid][pGVIPExVoucher]--;
				PlayerInfo[playerid][pDonateRank] = 3;
				PlayerInfo[playerid][pTempVIP] = 0;
				PlayerInfo[playerid][pBuddyInvited] = 0;
				PlayerInfo[playerid][pVIPSellable] = 1;
				PlayerInfo[playerid][pVIPExpire] = gettime()+604800*1; // here ( 7 days )
				if(PlayerInfo[playerid][pVIPM] == 0)
				{
					PlayerInfo[playerid][pVIPM] = VIPM;
					VIPM++;
				}
				LoadPlayerDisabledVehicles(playerid);
				new playerip[32];
				GetPlayerIp(playerid, playerip, sizeof(playerip));
				format(string, sizeof(string), "AdmCmd: Server (Voucher System) has set %s's VIP level to Gold (7 Days)(3).", GetPlayerNameEx(playerid));
				ABroadCast(COLOR_LIGHTRED, string, 4);
				format(string, sizeof(string), "You have successfully used one of your 7 Days Gold VIP voucher(s), you have %d 7 Days Gold VIP voucher(s) left.", PlayerInfo[playerid][pGVIPExVoucher]);
				SendClientMessageEx(playerid, COLOR_CYAN, string);
				SendClientMessageEx(playerid, COLOR_GRAD2, "** Note: Your Silver VIP will expire in 7 days.");

				format(string, sizeof(string), "AdmCmd: Server (Voucher System) has set %s's (IP:%s) VIP level to Gold (7 Days)(3) (Voucher Left: %d)", GetPlayerNameEx(playerid), playerip, PlayerInfo[playerid][pGVIPExVoucher]);
				Log("logs/vouchers.log", string);
				OnPlayerStatsUpdate(playerid);
			}
Reply


Messages In This Thread
Vip 7 days - by wilking - 27.06.2018, 17:30
Re: Vip 7 days - by wilking - 27.06.2018, 17:39
Re: Vip 7 days - by Awide - 27.06.2018, 17:41
Re: Vip 7 days - by wilking - 27.06.2018, 17:57
Re: Vip 7 days - by UFF - 28.06.2018, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)