-
-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathJumpToTarget.lua
More file actions
21 lines (18 loc) · 681 Bytes
/
JumpToTarget.lua
File metadata and controls
21 lines (18 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local MSG_TJ = "#tj"
local function Target_jump(event, player, msg, Type, lang)
local selectTarget = player:GetSelection()-- Make it so you select target
if (not selectTarget) then -- Make it so you select urself
selectTarget = player -- Make it so you select urself
end
local gmRank = player:GetGMRank()
if (gmRank >= 3) then -- change number (0-3) 0 - to all 1,2,3 GM with rank
if (msg:find(MSG_TJ)) then
x = selectTarget:GetX()
y = selectTarget:GetY()
z = selectTarget:GetZ()
player:MoveJump(x, y, z, 20, 25, 0)
return false
end
end
end
RegisterPlayerEvent(18, Target_jump)