1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

toolgun protection

Discussion in 'Discussion' started by seigfred, Aug 18, 2013.

  1. seigfred

    seigfred Dank af

    Do you know of any toolgun protection mods I can use on my server? It would be extremely useful.
    Please don't shitpost saying to remove toolguns, etc.
     
  2. How do you mean Toolgun Protection mods?
    If you give people e flags they'll get a toolgun. If they can't be trusted with it, don't give them e flags.
     
  3. trurascalz

    trurascalz C16 Developer Legend

    I think he means like restricting dynamite or balloons
     
  4. diablo1675

    diablo1675 Guest

    You can do this in your server's CFG file. Just put everything to 0.
     
  5. trurascalz

    trurascalz C16 Developer Legend

    Stolen from Gmodwiki:


    Code:
    function GM:CanTool( ply, tr, tool )
     if ( tool == "remover" and IsValid( tr.Entity ) and tr.Entity:GetClass() == "prop_door_rotating" ) then
     return false
     end
    end
    

    You want something like this

    Code:
    function GM:CanTool( ply, tr, tool )
     if ( tool == "remover" and  ply:IsAdmin()) then
     return true
    else return false
     end
    end
    
    

    I do not guarantee any of this will work
     

Previous Readers (Total: 0)