Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
function onSay(cid, words, param, channel)
if(not getTileInfo(getCreaturePosition(cid)).protection) then
doPlayerSendCancel(cid, "Sorry, not possible.")
return true
end
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
return true
end
function onSay(cid, words, param, channel)
ppos = getPlayerPosition(cid)
topos = {x = 908, y = 1241, z = 7}
if isPlayer(cid) == true then
doTeleportThing(cid, topos, TRUE)
doSendMagicEffect(ppos,10)
doSendMagicEffect(topos,10)
end
return 1
end
Also, maybe you need the parameters part in the script as well.
Lua:
function onSay(cid, words, param, channel)
if(not getTileInfo(getCreaturePosition(cid)).protection) then
doPlayerSendCancel(cid, "Sorry, not possible.")
return true
end
doTeleportThing(cid, getTownTemplePosition(param))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
return true
end
Not sure if that works, it's a guess right out of the blue.
The script looks perfectly fine (the one I posted).
You say you put it in talkactions.xml correctly.
You put the towns by ID in the mapeditor.
You're in PZ.
No errors in console.
And not working?
I don't know what to tell you, everything looks fine.