Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. function Teleport(pl,cmd,args)
  2.     local Trace = pl:GetEyeTrace()
  3.     local Pos = Trace.HitPos
  4.     if pl:GetPos():Distance( Pos ) > 500 then return end
  5.     pl:SetPos(Pos)
  6. end
  7. concommand.Add("Teleport",Teleport)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement