local lever = {
[7045] = {30,30,{2160}}
}
function onUse(cid,item,fromPosition,itemEx,toPosition)
if getPoints(cid) < lever[item.actionid][1] then
return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você precisa de "..lever[item.actionid][1].." points.")
end
removePoints(cid,lever[item.actionid][1])
local add = (lever[item.actionid][2]*86400)
setPlayerStorageValue(cid, 85258, getPlayerStorageValue(cid, 85258) - os.time() <= 0 and (os.time() + add) or (getPlayerStorageValue(cid, 85258) + add))
local quantity = math.floor((getPlayerStorageValue(cid, 85258) - os.time())/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
for _, items in pairs(lever[item.actionid][3]) do
doPlayerAddItem(cid,items,1)
end
return true
end






info
Grupo: Visconde
Registrado: 02/09/10
Posts: 341
Reputação: +6
Gênero: Masculino
fala galera gostaria q fosse removido do script o tile (VIP) q os players ganha somente isso, pq isso buga da pra criar msm nick do cara depois