hi everyone, i was using this script on tfs 0.22 and was no problems, but now i need use it on tfs 0.3.5.
look the script:
always the character login, the script is seting the storage 29000 to 0, but its need make it only when the vip time end.
anyone can help me?
sorry my bad english.
look the script:
Code:
-- configs
templepos = {x=200,y=200,z=7}
cityid = 1
-- end configs
function onLogin(cid)
timenow = os.time()
viptime = getPlayerStorageValue(cid,29000)
quantity = math.floor((getPlayerStorageValue(cid,29000) - timenow)/(3600*24))
if quantity <= 0 and viptime > 0 then
setPlayerStorageValue(cid,29000,0)
doTeleportThing(cid,templepos)
end
return TRUE
end
always the character login, the script is seting the storage 29000 to 0, but its need make it only when the vip time end.
anyone can help me?
sorry my bad english.