Pitufo™
InfinityOT.com
Then use two storages for that:
In login.lua add this:
And in your script from VIP add this:
Credits:
Nahruto
In login.lua add this:
PHP:
local storTime = 19000
local Stor = 19001
function onLogin(cid)
if os.difftime(os.time, getPlayerStorageValue(cid, storTime)) >= (24 * 60 * 60 * 1000) then
setPlayerStorageValue(cid, storTime, 0)
setPlayerStorageValue(cid, Stor, 0)
end
return TRUE
end
And in your script from VIP add this:
PHP:
setPlayerStorageValue(cid, storTime, os.time())
setPlayerStorageValue(cid, Stor, 1)
Credits:
Nahruto