-
Total de itens
335 -
Registro em
-
Última visita
-
Dias Ganhos
44
Atualização de Status Simples
Veja todas atualizações de Mateus Robeerto
-
É Assim que ta certo endvip.lua %[VIP%] ou assim %[VIP]%"
-
function onLogin(cid)
local vipStorage = getPlayerStorageValue(cid, 13545)
if vipStorage > 0 then
local currentTime = os.time()
if vipStorage <= currentTime then
setPlayerStorageValue(cid, 13545, -1)
doPlayerPopupFYI(cid, "Sua [VIP] Acabou.")
if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
addEvent(EddyHavoc, 3 * 1000, cid)
end
else
local daysLeft = math.ceil((vipStorage - currentTime) / (24 * 60 * 60)) -- Calcula os dias restantes
local pos = {x = 154, y = 51, z = 7}
doTeleportThing(cid, pos)
doPlayerPopupFYI(cid, "Voce ainda tem " .. daysLeft .. " dias de VIP restantes.")
end
end
return true
end
-