Making the door entity non-usable
#1
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:

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! Smile
Reply
Thanks given by:


Messages In This Thread
Making the door entity non-usable - by JonnyBoy0719 - 06-04-2016, 11:01 PM



Users browsing this thread: 2 Guest(s)