Qual seu sistema vip?
info
Grupo: Barão
Registrado: 24/03/11
Posts: 207
Reputação: +52
Char no Tibia: Lord Curitiibano

info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

-- [( Script edited by: DoidinMapper )] --
function onSay(cid, words, param)
access = 4
days = 30
player = getPlayerByName(param)
daysvalue = days*3600*24
storageplayer = getPlayerStorageValue(player,13540)
timenow = os.time()
if storageplayer == -1 or storageplayer == 0 then
time = timenow+daysvalue
else
time = storageplayer+daysvalue
end
if param ~= "" then
if getPlayerGroupId(cid) >= access then
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Were added ".. days .." VIP day on your character.")
setPlayerStorageValue(player,13540,time)
quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24))
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "You have ".. quantity .." days of VIP time.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only members with greater access to ".. access .." can add VIP.")
end
end
end
essde e meu sitema
info
Grupo: Campones
Registrado: 12/11/10
Posts: 69
Reputação: +2

tb presiso de um sistema mostra dias vip se pude ajuda eu tb
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

como assim se quer q verifique quanto dias de vip tem ?
info
Grupo: Visconde
Registrado: 19/07/12
Posts: 395
Reputação: +36
Char no Tibia: Billy Poul

-- [( Script edited by: DoidinMapper )] -- function onSay(cid, words, param) access = 4 days = 30 player = getPlayerByName(param) daysvalue = days*3600*24 storageplayer = getPlayerStorageValue(player,13540) timenow = os.time() if storageplayer == -1 or storageplayer == 0 then time = timenow+daysvalue else time = storageplayer+daysvalue end if param ~= "" then if getPlayerGroupId(cid) >= access then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Were added ".. days .." VIP day on your character.") setPlayerStorageValue(player,13540,time) quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(cid, 18, "Você tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only members with greater access to ".. access .." can add VIP.") end end end
ajudei?rep+





info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru
Ola e como eu ponho o statos dos dias de vip para aprecer no serv log?
obrgado