• 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!

Solved Talkaction teleport

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
function onSay(cid, words, param)
pos = {x=130, y=55, z=6}
doSendMagicEffect(getPlayerPosition(cid),53)
doPlayerSendCancel(cid,"Teleportado!")
doTeleportThing(cid,pos)
end

only used script on protect zone please help?
 
Code:
function onSay(cid, words, param)
pos = {x=130, y=55, z=6}
if getTileInfo(getPlayerPosition(cid)).protection then
doSendMagicEffect(getPlayerPosition(cid),53)
doPlayerSendCancel(cid,"Teleportado!")
doTeleportThing(cid,pos)
else
doPlayerSendCancel(cid,"PZ only command")
end
return true
end
 
Code:
function onSay(cid, words, param)
    pos = {x=130, y=55, z=6}
    if getTileInfo(getPlayerPosition(cid)).protection then
        doSendMagicEffect(getPlayerPosition(cid),53)
        doPlayerSendCancel(cid,"Teleportado!")
        doTeleportThing(cid,pos)
    else
        doPlayerSendCancel(cid,"PZ only command")
    end
    return true
end

Tabbed :D
 
Back
Top