• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ /send name, x,y,z

Mateus Robeerto

Excellent OT User
Joined
Jun 5, 2016
Messages
1,338
Solutions
71
Reaction score
698
Location
ლ(ಠ益ಠლ)
Hello Oltand community, I haven't found any forums that have the /send command to send the player or GM to a specific "coordination". Does anyone have a script for TFS 1.5? If you can, you can share here and I'd appreciate it!
 
Solution
Hello Oltand community, I haven't found any forums that have the /send command to send the player or GM to a specific "coordination". Does anyone have a script for TFS 1.5? If you can, you can share here and I'd appreciate it!
Lua:
local talk = TalkAction("/send", "!send")

function talk.onSay(player, words, param)
    if not player:getGroup():getAccess() then return true end
  local split = param:split(",")
  if split[4] then
    local p = Player(split[1])
    if p then
      p:teleportTo(Position(split[2], split[3], split[4]))
      p:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    end
  end
  return false
end

talk:separator(" ")
talk:register()

example:
/send player name, 33321, 33322, 7
Hello Oltand community, I haven't found any forums that have the /send command to send the player or GM to a specific "coordination". Does anyone have a script for TFS 1.5? If you can, you can share here and I'd appreciate it!
Lua:
local talk = TalkAction("/send", "!send")

function talk.onSay(player, words, param)
    if not player:getGroup():getAccess() then return true end
  local split = param:split(",")
  if split[4] then
    local p = Player(split[1])
    if p then
      p:teleportTo(Position(split[2], split[3], split[4]))
      p:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    end
  end
  return false
end

talk:separator(" ")
talk:register()

example:
/send player name, 33321, 33322, 7
 
Solution
Back
Top