Kaorus
Unleash Dreams Staff
- Joined
- May 18, 2008
- Messages
- 1,111
- Reaction score
- 41
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local teleport = {x=79, y=97, z=6}
local pos = getCreaturePosition(cid)
if item.itemid == 9825 and getPlayerAccess(cid) >= 4 then
doPlayerSendTextMessage(cid,21,"You are a staff member, you can pass")
doTeleportThing(cid, teleport, TRUE)
doSendMagicEffect(pos, 10)
doSendMagicEffect(teleport, 10)
else
doPlayerSendCancel(cid,"You dont are member of the staff.")
end
elseif item.itemid == 9826 and getPlayerAccess(cid) >= 4 then
doPlayerSendTextMessage(cid,21,"You are a staff member, you can pass")
doTeleportThing(cid, teleport, TRUE)
doSendMagicEffect(pos, 10)
doSendMagicEffect(teleport, 10)
else
doPlayerSendCancel(cid,"You dont are member of the staff.")
end
return true
end
PD:
Please, say the error of the scripts