potinho
Advanced OT User
Hiho everybody, im hosting a 7.6 server (TFS 0.4) and have a action for vip scroll (its working), but VIP stays forever, i need when a player use the vip scroll, keep storage 30009 for 30 days, after this time remove. Following my LUA archive for vip:
Lua:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2239 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens, voce se tornou um membro VIP do ExtremeOT por 30 dias!")
setPlayerStorageValue(cid, 30009, 1)
doPlayerAddPremiumDays(cid, 7)
doRemoveItem(item.uid, 1)
end
return true
end