Solved Hammer demolish permission

Discussion in 'Plugin Requests' started by PaiN, Mar 6, 2015.

  1. How can i change Hammer Demolish Permission to only AUTHLEVEL 2 "ownerid" ?? bcs mine vips can raid with autlevel1 bases..
    [DOUBLEPOST=1425635050,1425577114][/DOUBLEPOST]any1 can help ?
     
  2. I'm afraid this isn't possible by just writing a plugin, this would require additional changes to the server files.
     
  3. Wulf

    Wulf Community Admin

    You could intercept it with the new hook now couldn't you?
     
  4. Yep, with the new hook it's possible by returning a value.
     
  5. Ok so if it would be greate if u make it :p
     
  6. What exactly needs to be done? Only allow admins to use it? Or only admins and/or moderators with a specific steam id?
     
  7. to make it available only for "ownerid" ... and not "moderatorid"
     
  8. I have quickly thrown one together and briefly tested it but can only test a bit as I don't have a public server. I've attached the file to this post, if you could get back to me later reporting if it's working properly or not that would be great. If it's working good at that point I'll submit it as a resource here.

    Edit: Changed the file for a new version to reflect the changes in the new Oxide build.
     

    Attached Files:

    Last edited by a moderator: Mar 18, 2015
  9. Ok so one of my VIPS/moderatorid tried it out "I DIDNT RESTART THE SERVER" just after it auto loaded i reloaded the plugin
    and its not working

    Do i have to restart the server ?
     
  10. Oh, you probably don't have the hook yet as the hook that allows this to work is only available in the latests snapshots and not on the download that's available here so you'll probably need to wait until the next update or ask your host to use the latest snapshots (available on github).
     
  11. If you're using FPSPlayer to host, they use the latest snapshots of Oxide, which are downloaded you just need to uninstall and then re install oxide via your host console.