NexusBR submitted a new resource:
Admin Door Unlocker - unlock door, admin
Read more about this resource...
Admin Door Unlocker [Unmaintained]
Discussion in 'Plugin Support' started by NexusBR, Jan 8, 2015.
-
I don't think returning a boolean value (true) will result in a good end with other plugins if they have the same hook CanOpenDoor mostly can break theyr hooks. So think about it
-
-
There is no issue.
The only way to allow to admins open the doors is this way.
It will not be a issue because i return nil when is not a admin to other plugins may interact as well as the default behavior of the door trigger / hooks. -
NexusBR updated Admin Door Unlocker with a new update entry:
Added resourceID
-
i was actually going to update my door unlocker/locker to do this ...
you beat me to it.
but as SPoocK said it's not very very good to use return true as it will brake other plugins.
i'll put here the code that i was going to use.
[DOUBLEPOST=1420750814][/DOUBLEPOST]Code:function PLUGIN:CanOpenDoor( player, door ) -- Check if player is admin if player:GetComponent("BaseNetworkable").net.connection.authLevel == 2 then door:SetFlag(global.Flags.Locked,false) timer.Once(0.1, function() door:SetFlag(global.Flags.Locked,true) end) end end
-
NexusBR updated Admin Door Unlocker with a new update entry:
Switched to another door unlock method
-
Heyeaa! First of all I want to say that I love your plugin! I have some suggestions and I would love to see these in your plugin if this is possible!
My suggestions:
- Toggle the unlock function with a command (So I can normally play as admin and don't accidentally open doors while raiding)
Last edited by a moderator: Jan 9, 2015 -
it doesnt work for storage boxes? cause i would imagine that it would.
-
-
yes that would be usefull indeed
-
Hope this is possible and I could see this in the future!
-
I hacked up a version of this with a toggle and put it in the Experimental Development forum.
http://oxidemod.org/threads/admin-door-storage-access-with-toggle.6360/ -
Since i have installed the Plugin all Players can open locked doors ???
-
Wulf Community Admin
-
No, only i as Admin have authlevel 2. But the players can open looked doors ???
-
But there is a bug on Rust (Not on the plugin) that when the server restarts all doors/boxes locked are bugged and anyone can open the locked doors and chests. -
-
NexusBR updated Admin Door Unlocker with a new update entry:
Added chat commands and console commands
-
NexusBR updated Admin Door Unlocker with a new update entry:
Minor fix on authlevel console command