k its all right i make war project and need this script.i have it in my war project but i won't give it to anyone sorry
i have it in my war project but i won't give it to anyone sorry
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
to that wanted positiontopos
because when i write !t 1 nothing happens and no errors in console.If it doesn't work, why not post the errors?
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
still nothing 04:12 Czapla: !t 1Go RME and Edit Towns and test again!
ye i add in talkactions.xml correctlyDid you add it in talkactions.xml correctly?
yes mateAre you in PZ?
still nothing 04:12 Czapla: !t 1