LucasFerraz
Systems Analyst
Player must be in RIGHT TILE to be teleported.
Example of talkaction: !teleport vipcity1
Example of talkaction: !teleport vipcity1
LUA:
function onSay(cid, words, param, channel)
if getCreaturePosition(cid, { x = 500, y = 500, z = 7}) == TRUE then --where he must be
doTeleportThing(cid, { x = 900, y = 900, z = 7 }, true) -- where he will go
doSendMagicEffect(getCreaturePosition(cid),10)
else
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You aren\'t in right position to teleport.") -- fail msg
end
return TRUE
end