Grehy
Killroy
When using this object, I add a 60 second cool-down to it with this;
To check if the cool-down is over, I use this;
But what can I do to find out how many seconds are remaining? Thank you
Lua:
setGlobalStorageValue(45000, os.time() + 60)
To check if the cool-down is over, I use this;
Lua:
if getGlobalStorageValue(45000) >= os.time() then
doPlayerPopupFYI(cid, "The crane can only be used every 60 seconds.")
return false
end
But what can I do to find out how many seconds are remaining? Thank you