stoneharry

Untitled

Aug 30th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1.         if message == "#gps" then
  2.             local startx, starty, startz = -8406, -2772, 195
  3.             local x, y, z = plr:GetX(), plr:GetY(), plr:GetZ()
  4.             local new_x, new_y, new_z = 0, 0, 0
  5.             if x > startx then
  6.                 new_x = x-startx
  7.             else
  8.                 new_x = startx-x
  9.             end
  10.             if y > starty then
  11.                 new_y = y-starty
  12.             else
  13.                 new_y = starty-y
  14.             end
  15.             if z > startz then
  16.                 new_z = z-startz
  17.             else
  18.                 new_z = startz-z
  19.             end
  20.             plr:SendBroadcastMessage("0, "..tostring(new_x)..", "..tostring(new_y)..", "..tostring(z))
  21.             return false;
  22.         end
Advertisement
Add Comment
Please, Sign In to add comment