bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,046
- Solutions
- 7
- Reaction score
- 180
- Location
- Brazil
- YouTube
- caruniawikibr
As the title says, any ideas on how I can make level 4 = gamemaster players unable to open the chest?
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,8088) == -1 then
doPlayerAddItem(cid,2143,1)
setPlayerStorageValue(cid,8088,1)
doPlayerSendTextMessage(cid,22,"You have found a white pearl.")
return true
end
if getPlayerStorageValue(cid,8088) == 1 then
doPlayerSendTextMessage(cid,22,"It's empty.")
return true
end
end