I created a box, but players can move it.
I wish it were impossible to move it.
I wanted it to be impossible to move it.
Help-me please.
Code:
---by BomBa---
--------------
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerGroupId(cid) <= 1 then
if getPlayerStorageValue(cid, 2404) == -1 then
doPlayerAddItem(cid, 2404, 1)
doPlayerAddExp(cid, 50)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a Combat Knife.")
setPlayerStorageValue(cid, 2404, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not a common player.")
end
return TRUE
end
I wish it were impossible to move it.
I wanted it to be impossible to move it.
Help-me please.