if (getPlayerStorageValue(cid, 11552) == -1) then
setPlayerStorageValue(cid, 11552, 1)
setPlayerStorageValue(cid, 11551, 1)
end
I use ZnoteAccYou mean premium points? Vip days are usually applied to a player, not an account.
You will have to do this via your website, what aac do you use?
Noone in particular. But it's about using a Doll and giving 7 Vip days. There you go:Which VIP system are you using?
local days = 7
function onUse(cid, item, fromPosition, itemEx, toPosition)
doSendMagicEffect(getCreaturePosition(cid),14)
doSendAnimatedText(getCreaturePosition(cid), "VIP +7!" ,49)
doAddVipDays(cid, days)
doWriteLogFile("data/logs/buyeditems.txt", "[".. os.date('%d %B %y - %H:%M') .."] ".. getCreatureName(cid) .." bought VIP for 18 points.")
doRemoveItem(item.uid)
return true
end
if (getPlayerStorageValue(cid, 11552) == -1) then
setPlayerStorageValue(cid, 11552, 1)
doAddVipDays(cid, 7)
end