Raised This Month: $51 Target: $400
 12% 

[TF2] Weapon Zone Restriction


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4993
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Restrict weapons on some area definied by DevZones AND trigger_multiple brushes.
    Old 01-09-2016 , 14:32   [TF2] Weapon Zone Restriction
    Reply With Quote #1


    [TF2] Weapon Zone Restriction

    Description


    This plugin allow you to restrict the usage of some weapons in specific area, for exemple, no construction in some point, you restrict the PDA of the engineer, or you simply don't want to get backstabed on this spot ? Restrict the knife.

    Original idea here : https://forums.alliedmods.net/showpo...39&postcount=1

    Please, install Dev Zones first !

    https://forums.alliedmods.net/showthread.php?p=2023591

    Bugs :


    None... yet.

    Commands & Cvar :


    Command

    sm_tf2wzr_rc - Reaload the config file, require admin flag config.

    Cvar

    sm_tf2wzr_admin_immunity "0" - If set to 1, the admin with the flag SLAY will be affected as well by zones.

    Installation :


    1) Put TF2_WeaponZoneRestrictor.smx in your plugin folder : sourcemode/plugins
    2) Restart server, reload map or reload plugins folder.
    3) Find the config file in your configs folder (TF2_WeaponZoneRestrictor.ini) and add the item index you want to block :
    Code:
    // Write your weapons id here. A list of all weapons ID can be found here :
    // https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes
    200
    123
    175
    23
    1
    140
    ...
    4) Create the zones, using Dev Zones, your zone's name should contain "TF2WZR_"
    5) Type sm_tf2wzr_rc to reload the config file and you are done !

    Require 'devzones.inc' to compille.

    Request and think to do :


    None... yet !

    Screenshot :

    (any for the moment)
    Attached Files
    File Type: smx TF2_WeaponZoneRestrictor.smx (6.9 KB, 308 views)
    File Type: sp Get Plugin or Get Source (TF2_WeaponZoneRestrictor.sp - 329 views - 3.8 KB)
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 01-09-2016 at 15:55.
    Arkarr is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:54.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode