Advertisement
RoksasNunes

Create TP

Apr 13th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function onSay(cid, words, param)
  2.  
  3. local t = string.explode(param, ",")
  4.  
  5.     if not tonumber(t[1]) or not tonumber(t[4]) then
  6.         doPlayerSendTextMessage(cid, 27, "Command requires second position!")
  7.     end
  8.  
  9.     if doCreateTeleport (1387, {x = t[4], y = t[5], z = t[6]}, {x = t[1], y = t[2], z = t[3]}) then
  10.         doBroadcastMessage("Event has been started, run for sign.", MESSAGE_EVENT_ADVANCE)
  11.     end
  12.         return true
  13.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement