Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onThink(interval, lastExecution)
- local on = getPlayersOnline()
- local config = {
- Storages = {874547,874548},
- }
- if #on > 0 then
- for i = 1, #on do
- if getPlayerStorageValue(on[i], config.Storages[2]) <= os.time() and getPlayerStorageValue(on[i], config.Storages[1]) >= 1 then
- doTeleportThing(on[i], config.Saffari_Pos.Exit)
- setPlayerStorageValue(on[i], config.Storages[1], -1)
- setPlayerStorageValue(on[i], config.Storages[2], -1)
- doPlayerSendTextMessage(on[i],22,'you left the saffari zone.')
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement