Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- min_online = 30,
- text = "Opa, tô a um tempão online.",
- }
- function onThink()
- for _, uid in pairs(getPlayersOnline()) do
- if getPlayerStorageValue(uid, 70321) ~= -1 and os.time() - getPlayerStorageValue(uid, 70321) >= config.min_online * 60 then
- doCreatureSay(uid, config.text)
- setPlayerStorageValue(uid, 70321, -1)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment