Ola eu Estou tentando fazer 1 Porta pra q Apenas Gods Podem Utilizar !
Mais não Esta Dando muito Certo…
Ao tentar Abri-la diz q não sou God como no Script abaixo isso era pra Acontecer com Os Players!
(Slayer Yoruts 8.4 v6)
function onUse(cid, item, frompos, item2, topos)reqaces = getPlayerAccess(cid)
if item.uid == 8080 then
if reqaces == 5 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,Stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Apenas Gods Podem Entrar Aqui!')
end
return 1
else
return 0
end
end