mirror of
https://github.com/Isidorsson/Eluna-scripts
synced 2026-08-22 06:23:04 -04:00
22 lines
720 B
Lua
22 lines
720 B
Lua
local MSG_TJ = "#tj"
|
|
|
|
local function TargetJump(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
|
|
local msg = msg:lower()
|
|
if (msg == 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, TargetJump)
|