06-04-2016, 11:01 PM
Trying to get the door to be non-usable if you are trying to open another player's door if you aren't on their 'buddy' list. atm I'm just using the following code:
It works fine with chests, the furnace and reads the ID's of the doors. but still opens them. Any help would be appreciated!
Code:
PrivatePlayerData = {
54,
64,
61,
71,
193,
194,
195,
196,
197,
}
function OnPlayerUsingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ, BlockType, BlockMeta)
for k,v in pairs(PrivatePlayerData) do
if (v == BlockType) then
Player:SendMessageWarning("BlockType :: " .. BlockType)
return true
end
end
end
It works fine with chests, the furnace and reads the ID's of the doors. but still opens them. Any help would be appreciated!