[HELP] Vip days
#1

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!
Reply
#2

Make this with getdate...
Reply
#3

Ou, how to do that and what is it? HELP ME

I will give you a +rep
Reply
#4

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.

EDIT:

Quote:
Originally Posted by c0GI
Посмотреть сообщение
Ou, how to do that and what is it? HELP ME

I will give you a +rep
We dont care about the rep points. We just want to help. Thats it.
Reply
#5

Код:
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];
Reply
#6

Getdate
Reply
#7

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? Can I make this with Getdate?
Reply
#8

When you give somebody vips, save the day and month using getdate and your file system. Ex:
pawn Код:
VipDay = 10
VipMonth =  5
Then, when player connect, check if the current month is != of the VipMonth ,
and if the current day is > than VipDay. Case true, the vip expire
Reply
#9

Yes, thats true! But can you help me how to I do that or can you make it for me?? ) PLEASE
Reply
#10

What is your file system?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)