Itutorial
Legendary OT User
- Joined
- Dec 23, 2014
- Messages
- 2,461
- Solutions
- 68
- Reaction score
- 1,123
I am trying to make it so players cant put bags inside other bags. There is only 1 bag they can put other bags in.
I have everything working but when I try to move a backpack onto the ground or move it anywhere but on my person it doesnt register me moving it....Here is the code:
I have everything working but when I try to move a backpack onto the ground or move it anywhere but on my person it doesnt register me moving it....Here is the code:
Code:
if isInArray(bags, item:getId()) and isInArray(bags, toCylinder:getId()) then
self:sendCancelMessage('You cannot put bags inside bags.')
return false
end