Advertisement
RoksasNunes

Alavanca_IdaVolta

May 1st, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local cfg = {
  2.     pos_go = {x = 32991, y = 31539, z = 1},
  3.     pos_back = {x = 32991, y = 31539, z = 4},
  4. }
  5.  
  6. function onUse(cid, item, frompos, item2, topos)
  7.  
  8.     if item.actionid == 2901 then
  9.         doTeleportThing(cid, cfg.pos_go)
  10.     end
  11.  
  12.     if item.actionid == 2902 then
  13.         doTeleportThing(cid, cfg.pos_back)
  14.             doPlayerSendTextMessage(cid, 27, "You will be back.")
  15.         end
  16.  
  17.         return true
  18.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement