ta ae amigo:
function onStepIn(cid, item, pos)
local position = {x=412, y=1414, z=9}
local position2 = {x=398, y=1380, z=9}
if (getPlayerItemCount(cid, 1970) < 1) then
doTeleportThing(cid, position)
doSendMagicEffect(position,10)
else
doTeleportThing(cid, position2)
doSendMagicEffect(position2,10)
end
end
@EDIT:
se eu colocar assim, será que da certo??
function onStepIn(cid, item, pos)
if (!isPlayer(cid)) then
return TRUE
end
local position = {x=412, y=1414, z=9}
local position2 = {x=398, y=1380, z=9}
if (getPlayerItemCount(cid, 1970) < 1) then
doTeleportThing(cid, position)
doSendMagicEffect(position,10)
else
doTeleportThing(cid, position2)
doSendMagicEffect(position2,10)
end
end