Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if message == "#gps" then
- local startx, starty, startz = -8406, -2772, 195
- local x, y, z = plr:GetX(), plr:GetY(), plr:GetZ()
- local new_x, new_y, new_z = 0, 0, 0
- if x > startx then
- new_x = x-startx
- else
- new_x = startx-x
- end
- if y > starty then
- new_y = y-starty
- else
- new_y = starty-y
- end
- if z > startz then
- new_z = z-startz
- else
- new_z = startz-z
- end
- plr:SendBroadcastMessage("0, "..tostring(new_x)..", "..tostring(new_y)..", "..tostring(z))
- return false;
- end
Advertisement
Add Comment
Please, Sign In to add comment