Hy, I want to set a timer for a DONATED VIp days in my RP gamemod...
Player can use vip 30 days, but I dont know how to set timer for 30 days and the timer will remove vip!
First of all what kind of Stats saving system you're using? Give us your PlayerInfo enum. Tell us about your ini reader/writer and more.
We dont care about the rep points. We just want to help. Thats it.
Код:
enum pInfo
{
pPolaganje,
pKey[128],
pLevel,
pAdmin,
pPromoter,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pMuteAd,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pInHouse,
pJailed,
pJailTime,
pMats,
pDrugs,
pLeader,
pMember,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPcarkey,
pPcarkey2,
pPcarkey3,
pGangKey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pWatch,
pCrashed,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pMissionNr,
pWarns,
pVirWorld,
pFuel,
pMarried,
pMarriedTo[128],
pFishTool,
pNote1[128],
pNote1s,
pNote2[128],
pNote2s,
pNote3[128],
pNote3s,
pNote4[128],
pNote4s,
pNote5[128],
pNote5s,
pInvWeapon,
pInvAmmo,
pLighter,
VirtualWorld,
pCigarettes,
pRequestingBackup,
pRoadblock,
pMask,
pMaskuse,
pHideNumber,
pSpeaker,
pLocked,
//pSQLID,
pAFK,
pAdminLog,
pEventStarted,
pEventLocked,
pBizzLabel,
pBizzPickup,
pPropertyString,
pHasParrot,
pVIP,
pBaning,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Yes, but how I will make that, when I give somebody vips like command /vipdonate [playerid] and on that day will be started time for 30 days?
When you give somebody vips, save the day and month using getdate and your file system. Ex:
and if the current day is > than VipDay. Case true, the vip expire