Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. function onThink(interval, lastExecution)
  2. local on = getPlayersOnline()
  3. local config = {
  4. Storages = {874547,874548},
  5. }
  6. if #on > 0 then
  7. for i = 1, #on do
  8. if getPlayerStorageValue(on[i], config.Storages[2]) <= os.time() and getPlayerStorageValue(on[i], config.Storages[1]) >= 1 then
  9. doTeleportThing(on[i], config.Saffari_Pos.Exit)
  10. setPlayerStorageValue(on[i], config.Storages[1], -1)
  11. setPlayerStorageValue(on[i], config.Storages[2], -1)
  12. doPlayerSendTextMessage(on[i],22,'you left the saffari zone.')
  13. end
  14. end
  15. end
  16. return true
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement