samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 447
- Solutions
- 3
- Reaction score
- 49
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
[SQLite] -=[TFS]=- 0.4 8.60 Even with 0 days of VIP status, he continues to access the VIP area. storage: 13545
Script: buy vip 31 days and show you vip account end
Script: buy vip 31 days and show you vip account end
Lua:
function onLogin(cid)
local vipStorage = getPlayerStorageValue(cid, 13545)
if vipStorage > 0 then
if vipStorage - os.time() <= 0 then
setPlayerStorageValue(cid, 13545, -1)
doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
addEvent(EddyHavoc, 3 * 1000, cid)
end
else
local pos = {x = 154, y = 51, z = 7}
doTeleportThing(cid, pos)
doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
setPlayerStorageValue(cid, 13545, -1)
if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
addEvent(EddyHavoc, 3 * 1000, cid)
end
end
end
return true
end
Last edited: