Ola eu queria uma simples porta de vocação, mas a minha não ta fechando quando o player passa, ele fica aberta!
---VocDoor-by over---
function onUse(cid, item, frompos, item2, topos)
PlayerVoc = getPlayerVocation(cid)
if PlayerVoc == 4 then
doTeleportThing(cid,{x=114, y=1176, z=5})
else
doPlayerSendCancel(cid,"Only knights can pass through that door.")
return 1
end
end