local storage = 13007
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, storage) == -1) then
local book = doPlayerAddItem(cid, 1972, 1)
doSetItemText(book, "Your Text.")
setPlayerStorageValue(cid, storage, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a book.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
return true
end
How do i makes spaces like this ->You can do it like this.
Code:local storage = 13007 function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerStorageValue(cid, storage) == -1) then local book = doPlayerAddItem(cid, 1972, 1) doSetItemText(book, "Your Text.") setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a book.") else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The chest is empty.") end return true end