1. My question is basically this:

    Is it possible with current hooks to make decoy (essentially fake) tool cupboards in which people can authorize on and it'll show the "de-authorize" etc but the player will actually gain nothing from it as it has absolutely no connection to real tools in terms of first placed etc as it is fake and doesn't actually do anything, building would still be blocked

    And here's the point: is it possible to do that and have something called when they authorize so we can check and then the fun begins, land mines etc whatever people want to program

    I know you could make fakes by running a check through a timer and resetting the auth straight away and calling our own custom hook but is there a way without all that etc just using what's available to us at the minute.

    I hope this makes sense my blood is mostly THC

    <3
    [DOUBLEPOST=1436837549,1436680482][/DOUBLEPOST]Bump, still struggling to achieve this
     
  2. A hook would need to be added when a user enters a privileged zone/leaves.
     
  3. So technically there's no way to make it so that even when authorized, building privilege would still be blocked and that it doesn't actually connect with the other tools?

    Also if a moderator could move this into development, not sure how it ended up in discussion.
     
  4. You should be able to get away with setting a few flags on the player after the hook is added.

    You need to call this methods to disable the privilege.

    basePlayerObject.SetPlayerFlag(BasePlayer.PlayerFlags.InBuildingPrivilege, false); //Maybe this can be true I do not know. I think it controls the icon
    basePlayerObject.SetPlayerFlag(BasePlayer.PlayerFlags.HasBuildingPrivilege, false);
     
  5. That's awesome man! I must give this a test, if I succeed I will credit you as I've been searching for ever
     
  6. Reading this gave me an idea... What if authorizing on a cupboard that's not the main, if you do not already have main access, would give you a random amount of damage. Something like all secondaries are traps to people who do not have primary access?
     
  7. Very cool idea indeed! There are a lot of possibilities with it!

    Let me know if you make something like this, I'd definitely use it on my server.
     
  8. I don't have time to toy with that now.. but a quick look reveals the OnEntityEnter/Leave hooks might work. Do some tests with these hooks and see if they get triggered when you authorize/deauthorize yourself.