viniciusturko
New Member
The script :
The error :
Where is the error?
function onStepIn(cid, item, position, fromPosition)
for i, creature in pairs(getSpectators({x = 1390, y = 1042, z = 7}, 1, 1, false)) do
if isPlayer(creature) then
doTeleportThing(cid, {x = getCreaturePosition(cid).x, y = getCreaturePosition(cid).y + 1, z = getCreaturePosition(cid).z})
doSendMagicEffect(getCreaturePosition(cid), 2)
doPlayerSendTextMessage(cid, 19, "You cannot enter. There someone doing the quest now. Wait a minute.")
return 1
elseif isMonster(creature) then
doRemoveCreature(creature)
end
end
return true
end
The error :
Where is the error?