darkangel1
New Member
- Joined
- Oct 31, 2023
- Messages
- 53
- Reaction score
- 4
I added the /send script, but when I start the server an error message pops up...
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()
Attachments
-
08111.png20.8 KB · Views: 14 · VirusTotal